{
  "name": "vectorcraft",
  "title": "VectorCraft Multiplayer Canvas MCP",
  "version": "0.13.1",
  "room": "default",
  "protocol": "Model Context Protocol (2025-06-18, 2026-07-28)",
  "endpoints": {
    "sse": "/mcp/sse?room=default",
    "message": "/mcp/message?room=default",
    "rpc": "/mcp?room=default",
    "websocket": "/ws?room=default",
    "web_canvas": "/?room=default"
  },
  "instructions": "You are connected to VectorCraft live collaborative room 'default'. Any tool call you make (draw_shape, draw_path, set_paint, transform, set_cursor, etc.) is immediately synced via CRDT into the canvas, and visible live to human users. Use 'render_preview' or 'screenshot' to visually inspect what is currently drawn on the canvas.",
  "tools_count": 32,
  "tools": [
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List commands"
      },
      "description": "Discover command ids, labels, parameter descriptions and enabled state. Returns an array. The whole catalogue is large: narrow it with filter (or query), menu, and brief.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "brief": {
            "description": "Leave out each command's params description (the bulk of the catalogue); run command_list with the id as filter to read it",
            "type": "boolean"
          },
          "enabled_only": {
            "type": "boolean"
          },
          "filter": {
            "description": "Case-insensitive id, label or menu substring",
            "type": "string"
          },
          "menu": {
            "description": "Case-insensitive substring of the menu path, its levels joined with \" > \" (e.g. \"Object\", \"Object > Path\")",
            "type": "string"
          },
          "query": {
            "description": "Same as filter",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "command_list",
      "title": "List commands"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Run a command"
      },
      "description": "Run an engine command by id with its JSON params. Command parameters follow the registry's descriptions.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "Command id",
            "type": "string"
          },
          "params": {
            "type": "object"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "name": "command_run",
      "title": "Run a command"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Run several commands"
      },
      "description": "Run steps in order; each edit is its own undo step, or with atomic:true the whole batch is one (named `label`, else after its first edit). A step's id is a command id, or draw_path / draw_shape with that tool's arguments as params (its result is the tool's: the new object's `id`). A param string that is exactly \"$N.path\" (N: 0-based step index) or \"$last.path\" takes that value from an earlier step's result, e.g. {\"id\":\"$1.id\"}; \"$$\" starts a literal \"$\". Returns completed, failed, results and created (the ids draw_path / draw_shape steps made, in order). Stops on the first error by default. At most 256 steps; kept step results total at most 8 MiB, past which the batch stops with the reason.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "atomic": {
            "default": false,
            "description": "Make the batch's edits one undo step (needs an open document)",
            "type": "boolean"
          },
          "label": {
            "description": "The undo step's name with atomic",
            "type": "string"
          },
          "steps": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "description": "Command id, or draw_path / draw_shape",
                  "type": "string"
                },
                "params": {
                  "type": "object"
                }
              },
              "required": [
                "id"
              ],
              "type": "object"
            },
            "maxItems": 256,
            "type": "array"
          },
          "stop_on_error": {
            "default": true,
            "type": "boolean"
          }
        },
        "required": [
          "steps"
        ],
        "type": "object"
      },
      "name": "command_batch",
      "title": "Run several commands"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Inspect document"
      },
      "description": "Summary of the active document, including artboards, layer tree, selection and history. On a large document scope it: depth 0 for the layer skeleton, ids for just those nodes, kind for every node of one kind, limit/offset to page.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "childLimit": {
            "description": "Children shown per node (default all; a level that shows fewer reports childCount)",
            "minimum": 0,
            "type": "integer"
          },
          "depth": {
            "description": "Child levels of the layer tree to include (default all; 0 = top layers with counts)",
            "minimum": 0,
            "type": "integer"
          },
          "ids": {
            "description": "List just these nodes (any level) as `nodes` instead of the whole layer tree; an unknown id is an error",
            "items": {
              "minimum": 0,
              "type": "integer"
            },
            "maxItems": 10000,
            "type": "array"
          },
          "kind": {
            "description": "List every node of this panel label (Layer, Group, Path, Type, Image, ...; ignores case) as `nodes`, each with its ancestor `path`; searches the subtrees of `ids` when given",
            "type": "string"
          },
          "limit": {
            "description": "At most this many layers or nodes (the reply adds `total`)",
            "minimum": 0,
            "type": "integer"
          },
          "offset": {
            "description": "Layers or nodes skipped first (default 0)",
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "name": "doc_inspect",
      "title": "Inspect document"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Render a preview"
      },
      "description": "Render an artboard (default the first) as inline PNG without changing the document. max_side defaults to 1024, limited to 1..4096.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "artboard": {
            "description": "0-based artboard (default 0)",
            "minimum": 0,
            "type": "integer"
          },
          "max_side": {
            "maximum": 4096,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "name": "render_preview",
      "title": "Render a preview"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Inspect the interface"
      },
      "description": "Inspect the connected desktop interface; returns a tool error in headless mode.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "name": "ui_inspect",
      "title": "Inspect the interface"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Capture the interface"
      },
      "description": "Capture the connected desktop window as inline PNG; requires a running desktop app.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "name": "ui_screenshot",
      "title": "Capture the interface"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List commands"
      },
      "description": "List VectorCraft commands (id, label, menu path, shortcut, parameter description, enabled state). Every editing action is a command; run any of them with run_command. Coordinates are points in document space, y down, origin at the first artboard's top-left.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "brief": {
            "description": "Leave out each command's params description (the bulk of the catalogue); run command_list with the id as filter to read it",
            "type": "boolean"
          },
          "enabledOnly": {
            "description": "Only commands that can run right now",
            "type": "boolean"
          },
          "filter": {
            "description": "Case-insensitive substring matched against id, label and menu path (e.g. \"align\", \"Object\")",
            "type": "string"
          },
          "menu": {
            "description": "Case-insensitive substring of the menu path, its levels joined with \" > \" (e.g. \"Object\", \"Object > Path\")",
            "type": "string"
          },
          "query": {
            "description": "Same as filter",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "list_commands",
      "title": "List commands"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Run command"
      },
      "description": "Execute any VectorCraft command by id with JSON params (see list_commands for ids and params). Examples: {\"command\":\"object.group\"}, {\"command\":\"object.align\",\"params\":{\"horizontal\":\"left\"}}, {\"command\":\"file.new\",\"params\":{\"width\":800,\"height\":600}}. Returns the command's result (e.g. {id} for creation commands).",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "command": {
            "description": "Command id, e.g. shape.rectangle, object.group, paint.setFill",
            "type": "string"
          },
          "params": {
            "description": "Command parameters",
            "type": "object"
          }
        },
        "required": [
          "command"
        ],
        "type": "object"
      },
      "name": "run_command",
      "title": "Run command"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Inspect document"
      },
      "description": "Summary of the active document: artboards, layer tree (ids, names, kinds, bounds, fill/stroke), selection, undo history, current tool and default paint. On a large document pass depth: 0 for the layer skeleton (truncated levels report childCount), then locate objects with run_command document.find and read them with document.node.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "childLimit": {
            "description": "Children shown per node (default all; a level that shows fewer reports childCount)",
            "minimum": 0,
            "type": "integer"
          },
          "depth": {
            "description": "Child levels of the layer tree to include (default all; 0 = top layers with counts)",
            "minimum": 0,
            "type": "integer"
          },
          "ids": {
            "description": "List just these nodes (any level) as `nodes` instead of the whole layer tree; an unknown id is an error",
            "items": {
              "minimum": 0,
              "type": "integer"
            },
            "maxItems": 10000,
            "type": "array"
          },
          "kind": {
            "description": "List every node of this panel label (Layer, Group, Path, Type, Image, ...; ignores case) as `nodes`, each with its ancestor `path`; searches the subtrees of `ids` when given",
            "type": "string"
          },
          "limit": {
            "description": "At most this many layers or nodes (the reply adds `total`)",
            "minimum": 0,
            "type": "integer"
          },
          "offset": {
            "description": "Layers or nodes skipped first (default 0)",
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "name": "inspect_document",
      "title": "Inspect document"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Inspect UI"
      },
      "description": "UI state of the running desktop app: tool and options, panels, dialogs, view (zoom/center), window, documents, perf. Desktop app only.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "name": "inspect_ui",
      "title": "Inspect UI"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Select tool"
      },
      "description": "Switch the active tool (as clicking it in the Tools panel). Ids: selection, directSelection, groupSelection, pen, rectangle, roundedRectangle, ellipse, polygon, star, lineSegment, …",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "tool": {
            "description": "Tool id",
            "type": "string"
          }
        },
        "required": [
          "tool"
        ],
        "type": "object"
      },
      "name": "select_tool",
      "title": "Select tool"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Pointer gesture"
      },
      "description": "Drive the active tool with mouse events in document coordinates, exactly like the mouse would (e.g. a rectangle drag: down at (100,100), drag to (200,150), up at (200,150)). Optionally selects `tool` first.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "events": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "holdMs": {
                  "description": "Milliseconds the pointer then holds still, button down (0..60000): Twirl, Pucker and Bloat keep applying",
                  "type": "number"
                },
                "kind": {
                  "enum": [
                    "down",
                    "drag",
                    "up",
                    "move",
                    "doubleclick"
                  ],
                  "type": "string"
                },
                "mods": {
                  "additionalProperties": false,
                  "description": "Modifier keys held (cmd = Command on macOS / Ctrl elsewhere; alt = Option)",
                  "properties": {
                    "alt": {
                      "type": "boolean"
                    },
                    "cmd": {
                      "type": "boolean"
                    },
                    "ctrl": {
                      "type": "boolean"
                    },
                    "shift": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "pressure": {
                  "description": "Pen pressure 0..1 (default 1): the Liquify tools' intensity with Use Pressure Pen on",
                  "type": "number"
                },
                "x": {
                  "description": "Document x (pt)",
                  "type": "number"
                },
                "y": {
                  "description": "Document y (pt)",
                  "type": "number"
                }
              },
              "required": [
                "kind",
                "x",
                "y"
              ],
              "type": "object"
            },
            "minItems": 1,
            "type": "array"
          },
          "mods": {
            "additionalProperties": false,
            "description": "Modifier keys held (cmd = Command on macOS / Ctrl elsewhere; alt = Option)",
            "properties": {
              "alt": {
                "type": "boolean"
              },
              "cmd": {
                "type": "boolean"
              },
              "ctrl": {
                "type": "boolean"
              },
              "shift": {
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "tool": {
            "description": "Optional tool to select before the gesture",
            "type": "string"
          }
        },
        "required": [
          "events"
        ],
        "type": "object"
      },
      "name": "pointer_gesture",
      "title": "Pointer gesture"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Draw path"
      },
      "description": "Create a path from points ([[x,y],…] or [{x,y,in?:[x,y],out?:[x,y]},…] with Bézier handles) or SVG path data `d`, then apply optional paint, stroke dash/cap/join, opacity, name and live effects. Omitted paint fields inherit the current new-art appearance (initially white fill and 1 pt black stroke). For a filled path without an outline, pass an explicit fill and stroke:\"none\". Returns the new object id.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "cap": {
            "description": "Stroke cap",
            "enum": [
              "butt",
              "round",
              "square",
              "projecting"
            ],
            "type": "string"
          },
          "closed": {
            "description": "Close the path (points only)",
            "type": "boolean"
          },
          "d": {
            "description": "SVG path data (alternative to points), e.g. \"M0 0 L100 0 L50 80 Z\"",
            "type": "string"
          },
          "dash": {
            "anyOf": [
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Dash and gap lengths in pt ([d, g, …]), or null for a solid stroke (stroke.set `dash`)"
          },
          "effects": {
            "description": "Live effects applied in order, as apply_effect: [{effect: id (effect.list), params?: {…}}]",
            "items": {
              "additionalProperties": false,
              "properties": {
                "effect": {
                  "description": "Effect id, e.g. \"blur.gaussian\"",
                  "type": "string"
                },
                "params": {
                  "type": "object"
                }
              },
              "required": [
                "effect"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "fill": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              {
                "type": "object"
              }
            ],
            "description": "Fill: \"#rrggbb\", \"none\", [r,g,b] (0..1), {\"c\",\"m\",\"y\",\"k\"}, {\"gray\"}, or a full paint.setFill params object ({\"gradient\":…} / {\"swatch\":name})"
          },
          "join": {
            "description": "Stroke corner join",
            "enum": [
              "miter",
              "round",
              "bevel"
            ],
            "type": "string"
          },
          "name": {
            "description": "Name in the Layers panel",
            "type": "string"
          },
          "opacity": {
            "description": "Opacity in % (object.setProps `opacity`)",
            "maximum": 100,
            "minimum": 0,
            "type": "number"
          },
          "points": {
            "description": "Anchors: [x,y] pairs or {x, y, in?, out?, smooth?} objects",
            "items": {
              "anyOf": [
                {
                  "items": {
                    "type": "number"
                  },
                  "minItems": 2,
                  "type": "array"
                },
                {
                  "type": "object"
                }
              ]
            },
            "type": "array"
          },
          "stroke": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              {
                "type": "object"
              }
            ],
            "description": "Stroke: \"#rrggbb\", \"none\", [r,g,b] (0..1), {\"c\",\"m\",\"y\",\"k\"}, {\"gray\"}, or a full paint.setFill params object ({\"gradient\":…} / {\"swatch\":name})"
          },
          "strokeWidth": {
            "description": "Stroke weight in pt",
            "type": "number"
          }
        },
        "type": "object"
      },
      "name": "draw_path",
      "title": "Draw path"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Draw shape"
      },
      "description": "Create a live shape and apply optional paint. rectangle/ellipse: x, y, width, height (rectangle: radius = corner radius). polygon: cx, cy, radius, sides. star: cx, cy, radius1, radius2, points. line: x1, y1, x2, y2. Omitted paint fields inherit the current new-art appearance (initially white fill and 1 pt black stroke); lines start with no fill and a visible stroke. For a filled shape without an outline, pass an explicit fill and stroke:\"none\". Stroke dash/cap/join, opacity, name and live effects apply to the new shape as in draw_path. Returns the new object id.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "cap": {
            "description": "Stroke cap",
            "enum": [
              "butt",
              "round",
              "square",
              "projecting"
            ],
            "type": "string"
          },
          "cx": {
            "description": "Centre x (polygon/star)",
            "type": "number"
          },
          "cy": {
            "description": "Centre y (polygon/star)",
            "type": "number"
          },
          "dash": {
            "anyOf": [
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Dash and gap lengths in pt ([d, g, …]), or null for a solid stroke (stroke.set `dash`)"
          },
          "effects": {
            "description": "Live effects applied in order, as apply_effect: [{effect: id (effect.list), params?: {…}}]",
            "items": {
              "additionalProperties": false,
              "properties": {
                "effect": {
                  "description": "Effect id, e.g. \"blur.gaussian\"",
                  "type": "string"
                },
                "params": {
                  "type": "object"
                }
              },
              "required": [
                "effect"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "fill": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              {
                "type": "object"
              }
            ],
            "description": "Fill: \"#rrggbb\", \"none\", [r,g,b] (0..1), {\"c\",\"m\",\"y\",\"k\"}, {\"gray\"}, or a full paint.setFill params object ({\"gradient\":…} / {\"swatch\":name})"
          },
          "height": {
            "description": "Height (rectangle/ellipse)",
            "type": "number"
          },
          "join": {
            "description": "Stroke corner join",
            "enum": [
              "miter",
              "round",
              "bevel"
            ],
            "type": "string"
          },
          "name": {
            "description": "Name in the Layers panel",
            "type": "string"
          },
          "opacity": {
            "description": "Opacity in % (object.setProps `opacity`)",
            "maximum": 100,
            "minimum": 0,
            "type": "number"
          },
          "points": {
            "description": "Star points (default 5)",
            "minimum": 3,
            "type": "integer"
          },
          "radius": {
            "description": "Corner radius (rectangle) or radius (polygon)",
            "type": "number"
          },
          "radius1": {
            "description": "Star outer radius",
            "type": "number"
          },
          "radius2": {
            "description": "Star inner radius",
            "type": "number"
          },
          "rotation": {
            "description": "Rotation in degrees (polygon/star)",
            "type": "number"
          },
          "shape": {
            "enum": [
              "rectangle",
              "ellipse",
              "polygon",
              "star",
              "line"
            ],
            "type": "string"
          },
          "sides": {
            "description": "Polygon sides (default 6)",
            "minimum": 3,
            "type": "integer"
          },
          "stroke": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              {
                "type": "object"
              }
            ],
            "description": "Stroke: \"#rrggbb\", \"none\", [r,g,b] (0..1), {\"c\",\"m\",\"y\",\"k\"}, {\"gray\"}, or a full paint.setFill params object ({\"gradient\":…} / {\"swatch\":name})"
          },
          "strokeWidth": {
            "description": "Stroke weight in pt",
            "type": "number"
          },
          "width": {
            "description": "Width (rectangle/ellipse)",
            "type": "number"
          },
          "x": {
            "description": "Left (rectangle/ellipse)",
            "type": "number"
          },
          "x1": {
            "description": "Line start x",
            "type": "number"
          },
          "x2": {
            "description": "Line end x",
            "type": "number"
          },
          "y": {
            "description": "Top (rectangle/ellipse)",
            "type": "number"
          },
          "y1": {
            "description": "Line start y",
            "type": "number"
          },
          "y2": {
            "description": "Line end y",
            "type": "number"
          }
        },
        "required": [
          "shape"
        ],
        "type": "object"
      },
      "name": "draw_shape",
      "title": "Draw shape"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Set paint"
      },
      "description": "Set fill, stroke and/or stroke weight on the selection (or `ids`) and as the default for new art.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "fill": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              {
                "type": "object"
              }
            ],
            "description": "Fill: \"#rrggbb\", \"none\", [r,g,b] (0..1), {\"c\",\"m\",\"y\",\"k\"}, {\"gray\"}, or a full paint.setFill params object ({\"gradient\":…} / {\"swatch\":name})"
          },
          "ids": {
            "description": "Object ids (default: the selection)",
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "stroke": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              {
                "type": "object"
              }
            ],
            "description": "Stroke: \"#rrggbb\", \"none\", [r,g,b] (0..1), {\"c\",\"m\",\"y\",\"k\"}, {\"gray\"}, or a full paint.setFill params object ({\"gradient\":…} / {\"swatch\":name})"
          },
          "strokeWidth": {
            "description": "Stroke weight in pt",
            "type": "number"
          }
        },
        "type": "object"
      },
      "name": "set_paint",
      "title": "Set paint"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Press key"
      },
      "description": "Send a key press with modifiers, e.g. {key:\"Z\", mods:{cmd:true}} (undo), {key:\"Escape\"}, {key:\"Enter\"}. In the desktop app it goes through the real keyboard path; headless, it runs the command or tool bound to that shortcut.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "key": {
            "description": "Key name: A–Z, 0–9, Enter, Escape, Delete, Backspace, Tab, Space, Left/Right/Up/Down, [ ]…",
            "type": "string"
          },
          "mods": {
            "additionalProperties": false,
            "description": "Modifier keys held (cmd = Command on macOS / Ctrl elsewhere; alt = Option)",
            "properties": {
              "alt": {
                "type": "boolean"
              },
              "cmd": {
                "type": "boolean"
              },
              "ctrl": {
                "type": "boolean"
              },
              "shift": {
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "key"
        ],
        "type": "object"
      },
      "name": "press_key",
      "title": "Press key"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Type text"
      },
      "description": "Type text into the focused widget (text tool, dialog field). Desktop app only.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "text": {
            "description": "Text to type",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "name": "type_text",
      "title": "Type text"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Invoke menu"
      },
      "description": "Invoke a menu item by its command id (same ids as list_commands, including UI-only commands like view.zoomIn or window.* in the desktop app).",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "command": {
            "description": "Menu command id",
            "type": "string"
          },
          "params": {
            "type": "object"
          }
        },
        "required": [
          "command"
        ],
        "type": "object"
      },
      "name": "invoke_menu",
      "title": "Invoke menu"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Open panel"
      },
      "description": "Open a panel in the desktop app's dock by id (layers, swatches, stroke, align, pathfinder, transform, …; case-insensitive, display labels like \"Layers\" work too). Desktop app only.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "panel": {
            "description": "Panel id or display label",
            "type": "string"
          }
        },
        "required": [
          "panel"
        ],
        "type": "object"
      },
      "name": "open_panel",
      "title": "Open panel"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Screenshot"
      },
      "description": "Render the active artboard to PNG and return it as an image (optionally also saving it to `path`). With window:true (desktop app only) captures the whole app window instead.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "artboard": {
            "description": "Artboard index (default 0)",
            "minimum": 0,
            "type": "integer"
          },
          "path": {
            "description": "Also write the PNG here",
            "type": "string"
          },
          "scale": {
            "description": "Pixels per point (default 1)",
            "type": "number"
          },
          "window": {
            "description": "Capture the app window (desktop app only)",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "name": "screenshot",
      "title": "Screenshot"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Open file"
      },
      "description": "Open a file as a new, active document: .vectorcraft, .drawcraft, .svg, .svgz, .pdf, .ai, .ait, .png, .jpg, .jpeg, .gif, .webp, .tif, .tiff, .bmp, .psd, .psb, .vctemplate, .dxf, .emf, .wmf, .eps, .epsf, .ps, .af, .afdesign, .afpub (see run_command document.formats). Templates (.ait, native templates) open as a new untitled document. The reply's `warnings` say what didn't come in as it was (an EPS shown as its preview image says why its PostScript couldn't be read).",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "path": {
            "description": "File path",
            "type": "string"
          }
        },
        "required": [
          "path"
        ],
        "type": "object"
      },
      "name": "open_file",
      "title": "Open file"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Save file"
      },
      "description": "Save the active document with the engine's document.save: by default to its own file in its own format (native .vectorcraft unless it was opened from or saved as SVG, PDF or a restorable .ai). With `path`, the extension picks the format: .vectorcraft, .vctemplate, .pdf, .svg, .svgz, .ai. Other formats are exports (see export). The reply's `format` says what was written and `warnings` what that format loses.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "path": {
            "description": "Destination; its extension picks the format (default: the document's own file)",
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "save_file",
      "title": "Save file"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Export"
      },
      "description": "Export the active document with the engine's document.export (the same bytes in the app and headless), in any format of the `format` enum: vectors (svg/svgz with the artboard as viewBox, eps, dxf, emf, wmf), pdf and ai (one page per artboard: all, or `artboard` / `range`; ai is the PDF-compatible .ai file that Save writes, which carries the document when every artboard is written in order), rasters (one rendered artboard: png, jpg, webp, gif, png8 as an indexed .png, tiff, bmp, tga, psd with its layers), txt (the stories, back to front), vectorcraft or template (a native copy or template; the document keeps its path). run_command document.formats lists each format's options. For SVG/SVGZ, top-level `outlineText: true` writes text as paths; DXF takes it too (its type is outlined anyway unless `preserve: editability`). PDF instead uses `options.advanced.outlineText: true`, default false (live text). `selection: true` exports only the selected objects, cropped to their bounds. Template layers are left out; live effects are kept (geometry baked, SVG filters for shadows/glows/blur). Without `path` the bytes come back as dataBase64.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "artboard": {
            "description": "0-based artboard (default: the first; PDF and .ai default: all)",
            "minimum": 0,
            "type": "integer"
          },
          "format": {
            "description": "Default: from the path's extension",
            "enum": [
              "vectorcraft",
              "svg",
              "svgz",
              "pdf",
              "ai",
              "png",
              "jpg",
              "gif",
              "webp",
              "tiff",
              "bmp",
              "template",
              "png8",
              "txt",
              "dxf",
              "eps",
              "emf",
              "wmf",
              "tga",
              "psd"
            ],
            "type": "string"
          },
          "options": {
            "description": "More format options, passed through (see run_command document.formats), e.g. {\"quality\": 80} for jpg or {\"advanced\": {\"outlineText\": true}} for PDF text as outlines (default false: live text)",
            "type": "object"
          },
          "outlineText": {
            "description": "SVG/SVGZ: true writes text as outlines (viewable without the fonts). DXF takes it too (type outlined anyway unless preserve: editability). PDF uses options.advanced.outlineText instead (default false: live text)",
            "type": "boolean"
          },
          "path": {
            "description": "Destination file (omit to get dataBase64)",
            "type": "string"
          },
          "range": {
            "description": "1-based artboards such as \"1-3, 5\" (PDF and .ai: one page each; SVG, SVGZ and EPS: one file each; rasters, DXF, EMF and WMF: one, or one file each with options.useArtboards: true)",
            "type": "string"
          },
          "scale": {
            "description": "Raster pixels per point (default 1)",
            "type": "number"
          },
          "selection": {
            "description": "Export only the selection, cropped to it",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "name": "export",
      "title": "Export"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Add text"
      },
      "description": "Create point type at (x, y) (the first baseline), area type when width/height are given (`fit` autoHeight grows the frame to the text, shrinkText scales the text down to fit), or type in/on an existing path (`path` id + `mode` area|onPath; `pathEffect` rainbow|skew|3dRibbon|stairStep|gravity). Returns the text object id, with `overflow: true` when the text doesn't fit its frame or path (the lines past it aren't drawn: enlarge the frame, shrink the text or give `fit`).",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              {
                "type": "object"
              }
            ],
            "description": "Text colour (#rrggbb): \"#rrggbb\", \"none\", [r,g,b] (0..1), {\"c\",\"m\",\"y\",\"k\"}, {\"gray\"}, or a full paint.setFill params object ({\"gradient\":…} / {\"swatch\":name})"
          },
          "fit": {
            "description": "Area type: keep the frame (none), fit its height to the text (autoHeight) or scale overflowing text down (shrinkText)",
            "enum": [
              "none",
              "autoHeight",
              "shrinkText"
            ],
            "type": "string"
          },
          "fitMinPercent": {
            "description": "shrinkText: the smallest scale in percent, 10 to 100 (default 50)",
            "type": "number"
          },
          "font": {
            "description": "Font family",
            "type": "string"
          },
          "height": {
            "description": "Area type frame height",
            "type": "number"
          },
          "justify": {
            "description": "Paragraph alignment (default auto: the start of the text's direction). Point type lines up on x: center centres each line on it, right ends it there",
            "enum": [
              "auto",
              "left",
              "center",
              "right",
              "justifyAll"
            ],
            "type": "string"
          },
          "mode": {
            "enum": [
              "area",
              "onPath"
            ],
            "type": "string"
          },
          "path": {
            "description": "Existing path id to flow the text in (area) or along (onPath)",
            "type": "integer"
          },
          "pathEffect": {
            "enum": [
              "rainbow",
              "skew",
              "3dRibbon",
              "stairStep",
              "gravity"
            ],
            "type": "string"
          },
          "size": {
            "description": "Font size in pt",
            "type": "number"
          },
          "text": {
            "type": "string"
          },
          "vertical": {
            "description": "Vertical writing for point, area or path type (default false, horizontal), as text.create / text.createInPath",
            "type": "boolean"
          },
          "width": {
            "description": "Area type frame width",
            "type": "number"
          },
          "x": {
            "description": "Baseline origin x (area type: left; point type: where the line starts, or its centre or end with justify center/right)",
            "type": "number"
          },
          "y": {
            "description": "First baseline y (area type: top)",
            "type": "number"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "name": "add_text",
      "title": "Add text"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Apply live effect"
      },
      "description": "Append a live effect (Effect menu) to the selection or `ids`. Omit `effect` to get the catalogue (ids, parameters, defaults). Examples: stylize.dropShadow {x, y, blur, opacity}, distort.roughen, warp.arc {bend}, path.offsetPath {offset}, pathfinder.add (on groups), blur.gaussian {radius}.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "effect": {
            "description": "Effect id (see the catalogue)",
            "type": "string"
          },
          "ids": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "params": {
            "description": "Effect parameters; missing keys take the dialog defaults",
            "type": "object"
          }
        },
        "type": "object"
      },
      "name": "apply_effect",
      "title": "Apply live effect"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Pathfinder"
      },
      "description": "Combine the selected (or `ids`) objects destructively, back to front: unite, minusFront, intersect, exclude, divide, trim, merge, crop, outline, minusBack. For a non-destructive version apply the pathfinder.* effect to a group.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "ids": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "operation": {
            "enum": [
              "unite",
              "minusFront",
              "intersect",
              "exclude",
              "divide",
              "trim",
              "merge",
              "crop",
              "outline",
              "minusBack"
            ],
            "type": "string"
          }
        },
        "required": [
          "operation"
        ],
        "type": "object"
      },
      "name": "pathfinder",
      "title": "Pathfinder"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Transform"
      },
      "description": "Move, rotate, scale, reflect or shear the selection (or `ids`); several may be combined and run in that order. Angles in degrees (counter-clockwise), scale in %. `origin` [x,y] defaults to the selection centre; `copy` transforms a copy.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "copy": {
            "type": "boolean"
          },
          "dx": {
            "description": "Move right",
            "type": "number"
          },
          "dy": {
            "description": "Move down",
            "type": "number"
          },
          "ids": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "origin": {
            "items": {
              "type": "number"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": "array"
          },
          "reflect": {
            "enum": [
              "vertical",
              "horizontal"
            ],
            "type": "string"
          },
          "rotate": {
            "description": "Rotation in degrees",
            "type": "number"
          },
          "scale": {
            "description": "Uniform scale in %",
            "type": "number"
          },
          "scaleX": {
            "description": "Horizontal scale in %",
            "type": "number"
          },
          "scaleY": {
            "description": "Vertical scale in %",
            "type": "number"
          },
          "shear": {
            "description": "Shear angle in degrees (horizontal axis)",
            "type": "number"
          }
        },
        "type": "object"
      },
      "name": "transform",
      "title": "Transform"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Create graph"
      },
      "description": "Create a graph (graph tools) in the plot rectangle. Data as `csv` (first row: empty cell then series names; then one row per category: label, values…) or `series`/`categories`/`rows`. An empty CSV cell or a null in `rows` is a blank value (no column; lines break around it); a number in straight quotes is a label. Edit later with run_command graph.setData / graph.setType.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "categories": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "csv": {
            "type": "string"
          },
          "height": {
            "description": "Plot height",
            "type": "number"
          },
          "rows": {
            "items": {
              "items": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "type": "array"
            },
            "type": "array"
          },
          "series": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": {
            "enum": [
              "column",
              "stackedColumn",
              "bar",
              "stackedBar",
              "line",
              "area",
              "scatter",
              "pie",
              "radar"
            ],
            "type": "string"
          },
          "width": {
            "description": "Plot width",
            "type": "number"
          },
          "x": {
            "description": "Plot left",
            "type": "number"
          },
          "y": {
            "description": "Plot top",
            "type": "number"
          }
        },
        "required": [
          "x",
          "y",
          "width",
          "height"
        ],
        "type": "object"
      },
      "name": "create_graph",
      "title": "Create graph"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Text wrap"
      },
      "description": "Make the selected (or `ids`) objects wrap objects: area type below them in the same layer flows around them (offset in pt, invert = flow inside). `release: true` removes the wrap.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "ids": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "invert": {
            "type": "boolean"
          },
          "offset": {
            "description": "Gap between text and object (default 6 pt)",
            "type": "number"
          },
          "release": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "name": "text_wrap",
      "title": "Text wrap"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Undo"
      },
      "description": "Undo the last change (Edit → Undo).",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "name": "undo",
      "title": "Undo"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Redo"
      },
      "description": "Redo the last undone change (Edit → Redo).",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "name": "redo",
      "title": "Redo"
    }
  ]
}