Skip to content
Image Generation
Skill

/editor-tools

Drives the live Open Screenshot Generator editor tool by tool over MCP, using `osg mcp` to expose the design tools (artboards, elements, backgrounds, fonts, the asset libraries, templates, App Preview timelines, 57 locales and PNG export) to any MCP client, plus `osg install` to

From plugin
open-screenshot-generator
15313 skills1 MCP

Claude Code

$ npx -y skills add dotnetdreamer/open-screenshot-generator --skill editor-tools --agent claude-code

SKILL.md

editor-tools.SKILL.md
name: editor-tools
description: >-
  Drives the live Open Screenshot Generator editor tool by tool over MCP, using `osg mcp` to expose
  the design tools (artboards, elements, backgrounds, fonts, the asset libraries, templates, App
  Preview timelines, 57 locales and PNG export) to any MCP client, plus `osg install` to write the
  server entry into a detected agent config. Use this whenever someone wants to edit an existing
  screenshot project rather than regenerate it, asks to connect the design tools to Claude Code,
  Cursor, Claude Desktop or VS Code, or says things like "move that headline", "make the phone
  bigger", "add an MCP server for my screenshots", "let me edit the design from here" or "what tools
  do I have". Read it before making any direct tool call, because the element, locale and export
  tools have asymmetries that silently do nothing if you guess.
license: MIT
metadata:
  package: open-screenshot-generator
  homepage: https://openscrgen.app

Driving the editor: the tools, and the rules that keep them honest

**The end state**: an MCP client holding a live connection to the real editor, with the user's project open, making precise edits that land as real undo steps in a project file the user can open in the app afterwards.

Nothing here is a reimplementation. Every call lands in the same function a click in the UI lands in, inside the real editor page. That is why an edit you make is indistinguishable from an edit the user made by hand.

Starting the server

npx -y open-screenshot-generator@0 install

`install` detects the agent configs on this machine and writes the server entry. Prefer it over hand editing, especially on Windows where several clients need the command wrapped.

The manual form, for a config it did not know about:

{
  "mcpServers": {
    "open-screenshot-generator": {
      "command": "npx",
      "args": ["-y", "open-screenshot-generator@0", "mcp", "--stdio"]
    }
  }
}

`--stdio` is the default and the right choice: no port, no firewall prompt, no shared secret. Use `--http --port 8722` only when the client cannot spawn a process, and it then speaks Streamable HTTP at `http://127.0.0.1:8722/mcp`.

Two behaviours worth knowing so the server does not feel broken:

  • `initialize`, `ping` and `tools/list` are answered from a manifest generated at build time, with no

browser at all. Every client calls `tools/list` at session start and paying a browser boot for a handshake would be unacceptable.

  • The browser starts on the **first `tools/call`** and stays warm for the life of the connection. So

the first real call is slow and every one after it is not.

One capability exists here that no other transport has: `export_png` and `export_all` with `save: true` actually write files. In a browser tab that throws, because a tab cannot write to disk.

For one off calls without a client, the CLI is the same surface:

npx -y open-screenshot-generator@0 call list_artboards
npx -y open-screenshot-generator@0 edit --script osg/edits.json

`osg call` prints the raw JSON result on stdout, so it pipes into `jq`. `osg edit --script` runs a list of calls in order, which is the quoting proof form on Windows.

The mutation rules

These are not style preferences. Each one is a way to make a call that returns success and changes nothing.

**1. One call in flight, always.** The tool api closes over the artboards of the render that produced it. Two mutations dispatched in the same tick both read the pre change state and the second silently clobbers the first. The CLI serializes every bridge call for exactly this reason. If you are driving the page yourself, await each response fully before sending the next. The desktop app and the web relay also put concurrent calls in one line, but a call that waits there past its time budget is refused rather than run, so a burst of parallel calls turns into errors, not speed.

**2. There is one door, and it is the same door the UI uses.** Every mutating tool commits through the app's single update path, which repositions the boards, writes the project, and pushes one undo entry. That is why one tool call is one Ctrl+Z, and why `add_elements` is strictly better than a loop of `add_element`: one round trip, one undo step, and nothing is added at all if any entry is rejected, so you never end up with a half built board.

**3. An artboard's `position` is derived.** It is recomputed and overwritten on every update. Authoring it does nothing. Move a board along the canvas with `update_artboard` `index` instead, 0 being leftmost.

**4. `x`/`y` and `width`/`height` are not symmetric.** `position` is written if **either** `x` or `y` is present, filling the missing one with 0, so `update_element` with only `x` also slams the element to y=0. `size` is written only when **both** `width` and `height` are present, so a lone `width` is dropped with no error at all. Always pass the pairs together.

**5. An explicit `null` clears a property.** Omitting it leaves it alone. `null` is the only way to remove a `shadow`, a `fillGradient`, an animation `enter` or `exit`, or a preview duration override.

**6. An unknown `fontFamily` is rejected, not substituted.** The error names the closest available families. This is deliberate: a browser silently falls back to a default serif, which looks like the design changed for no reason. `list_fonts` is the allowlist, filterable by script (`latin`, `arabic`, `urdu`, `hebrew`, `cjk`, `thai`, `devanagari`, `bengali`, `multilingual`).

**7. Text does not measure the way you expect.** Glyphs render at roughly 3.3x the stored `fontSize` and wrap inside the element box, which clips. So ~48 is a phone headline, not 96, and the real ink bounds cannot be predicted from the props. `measure_element` returns what the element actually occupies on the rendered canvas. Use it before aligning anything to a headline's edge.

**8. Elements paint in list order**, first at the back, a

Read more
@dotnetdreamer
Ships withopen-screenshot-generator

Make screenshots and preview videos for the App Store and Google Play. Start with a template, add screenshots of your app, change the text and colors, then export the finished files at store sizes.

15313 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
153
Star history of dotnetdreamer/open-screenshot-generator on GitHub, a chart by star-history.com

Other skills on open-screenshot-generator.

More skills from other plugins.

Questions about editor-tools.

Which coding agents can use editor-tools?
editor-tools installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.