Skip to main content
Glama

clearly_canvas_update

Destructive

Change existing canvas layers atomically in one revision. ids and patch apply a common patch. edits supports up to 200 distinct patches. Up to 100 structure, layout, variable, prototype and vector operations run after patches in request order. Validation and expectedRev checks occur before any change. Works without an open editor or local CLI.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target": "<target>"
    },
    "name": "clearly_canvas_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoNode ids or unique layer names.
opsNoStructure, layout, variable, prototype and vector operations, run after the patches in order.
editsNo
patchNo
targetYesCanvas id, key or exact title.
expectedRevNoOptional canvasNodesRev from the scene read; a stale revision refuses without applying changes.
coordinateSpaceNo

Output Schema

NameRequiredDescriptionDefault
okYes
codeNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / ops / items / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Patch layers; use it to set fields between other ops.",
      -    "properties": {
      -      "coordinateSpace": {
      -        "enum": [
      -          "parent",
      -          "world"
      -        ],
      -        "type": "string"
      -      },
      -      "ids": {
      -        "description": "Node ids or unique layer names.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 100,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "op": {
      -        "enum": [
      -          "patch"
      -        ],
      -        "type": "string"
      -      },
      -      "patch": {
      -        "description": "The fields of patch; checked against that schema.",
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "ids",
      -      "patch"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Group existing layers into a named group; members stay editable.",
      -    "properties": {
      -      "ids": {
      -        "description": "Node ids or unique layer names.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 100,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "op": {
      -        "enum": [
      -          "group"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "ids",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Dissolve groups or frames, keeping their members in place.",
      -    "properties": {
      -      "ids": {
      -        "description": "Node ids or unique layer names.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 100,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "op": {
      -        "enum": [
      -          "ungroup"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "ids"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Put layers that share a parent into a new frame that fits them (plus padding) without moving them; autoLayout makes it a live layout frame.",
      -    "properties": {
      -      "autoLayout": {
      -        "type": "object"
      -      },
      -      "fill": {
      -        "anyOf": [
      -          {
      -            "description": "CSS hex colour, none or transparent.",
      -            "type": "string"
      -          },
      -          {
      -            "items": {
      -              "type": "number"
      -            },
      -            "maxItems": 4,
      -            "minItems": 4,
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "ids": {
      -        "description": "Node ids or unique layer names.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 100,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "op": {
      -        "enum": [
      -          "wrap"
      -        ],
      -        "type": "string"
      -      },
      -      "padding": {
      -        "type": "number"
      -      },
      -      "radius": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "ids",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Combine path layers into a live boolean group (subtract: the first id is the base); operands stay editable.",
      -    "properties": {
      -      "ids": {
      -        "description": "Node ids or unique layer names.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 100,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "mode": {
      -        "enum": [
      -          "union",
      -          "subtract",
      -          "exclude",
      -          "intersect"
      -        ],
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "op": {
      -        "enum": [
      -          "boolean"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "ids",
      -      "mode"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Expand an SVG object into native layers; the source is kept in a hidden recovery layer.",
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "op": {
      -        "enum": [
      -          "expand-svg"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Align, distribute, tidy or pack layers. Geometry only.",
      -    "properties": {
      -      "gap": {
      -        "type": "number"
      -      },
      -      "ids": {
      -        "description": "Node ids or unique layer names.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 100,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "mode": {
      -        "enum": [
      -          "align-left",
      -          "align-right",
      -          "align-hcenter",
      -          "align-top",
      -          "align-bottom",
      -          "align-vcenter",
      -          "distribute-h",
      -          "distribute-v",
      -          "tidy",
      -          "pack-h",
      -          "pack-v"
      -        ],
      -        "type": "string"
      -      },
      -      "op": {
      -        "enum": [
      -          "arrange"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "ids",
      -      "mode"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Change stacking order.",
      -    "properties": {
      -      "ids": {
      -        "description": "Node ids or unique layer names.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 100,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "mode": {
      -        "enum": [
      -          "front",
      -          "back",
      -          "forward",
      -          "backward"
      -        ],
      -        "type": "string"
      -      },
      -      "op": {
      -        "enum": [
      -          "order"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "ids",
      -      "mode"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Scale layers with their descendants, text and strokes, by factor.",
      -    "properties": {
      -      "factor": {
      -        "type": "number"
      -      },
      -      "ids": {
      -        "description": "Node ids or unique layer names.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 100,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "op": {
      -        "enum": [
      -          "scale"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "ids",
      -      "factor"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Reflect layers horizontally (x) or vertically (y).",
      -    "properties": {
      -      "axis": {
      -        "enum": [
      -          "x",
      -          "y"
      -        ],
      -        "type": "string"
      -      },
      -      "ids": {
      -        "description": "Node ids or unique layer names.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 100,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "op": {
      -        "enum": [
      -          "flip"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "ids",
      -      "axis"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Rotate layers clockwise by angle about cx/cy, or each about its centre. Paths rotate in their geometry; frames stay axis-aligned.",
      -    "properties": {
      -      "angle": {
      -        "type": "number"
      -      },
      -      "cx": {
      -        "type": "number"
      -      },
      -      "cy": {
      -        "type": "number"
      -      },
      -      "ids": {
      -        "description": "Node ids or unique layer names.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 100,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "op": {
      -        "enum": [
      -          "rotate"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "ids",
      -      "angle"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Figma auto layout on a frame: a row (h), column (v) or grid that re-flows as children change. Omitted settings keep their values; the first call infers them from the children. enabled:false removes it, keeping positions. Child settings (Fill, min/max, ignore layout, grid cell) are patch fields on the child.",
      -    "properties": {
      -      "align": {
      -        "description": "Cross axis; baseline lines up text in a row. Grid: cells' default vertical alignment.",
      -        "enum": [
      -          "start",
      -          "center",
      -          "end",
      -          "baseline"
      -        ],
      -        "type": "string"
      -      },
      -      "columnGap": {
      -        "type": "number"
      -      },
      -      "columnSizes": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "description": "Fixed px.",
      -              "type": "number"
      -            },
      -            {
      -              "description": "\"fill\", \"2fr\" or \"hug\".",
      -              "type": "string"
      -            },
      -            {
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "maxItems": 64,
      -        "type": "array"
      -      },
      -      "columns": {
      -        "description": "Grid columns.",
      -        "type": "number"
      -      },
      -      "counterAlignContent": {
      -        "description": "Wrap: space-between spreads the rows across a fixed height.",
      -        "enum": [
      -          "start",
      -          "space-between"
      -        ],
      -        "type": "string"
      -      },
      -      "counterGap": {
      -        "description": "Between wrapped rows or columns; grid: the row gap.",
      -        "type": "number"
      -      },
      -      "direction": {
      -        "description": "Row, column or grid.",
      -        "enum": [
      -          "h",
      -          "v",
      -          "grid"
      -        ],
      -        "type": "string"
      -      },
      -      "enabled": {
      -        "type": "boolean"
      -      },
      -      "gap": {
      -        "anyOf": [
      -          {
      -            "description": "Between items; negative overlaps them. Grid: the column gap.",
      -            "type": "number"
      -          },
      -          {
      -            "description": "Auto spacing (Between).",
      -            "enum": [
      -              "auto"
      -            ],
      -            "type": "string"
      -          }
      -        ]
      -      },
      -      "hug": {
      -        "type": "boolean"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "justify": {
      -        "description": "Main axis; space-* is Figma's Auto gap (Between / Around / Evenly). Grid: cells' default horizontal alignment.",
      -        "enum": [
      -          "start",
      -          "center",
      -          "end",
      -          "space-between",
      -          "space-around",
      -          "space-evenly"
      -        ],
      -        "type": "string"
      -      },
      -      "maxH": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "maxW": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "minH": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "minW": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "op": {
      -        "enum": [
      -          "auto-layout"
      -        ],
      -        "type": "string"
      -      },
      -      "padding": {
      -        "type": "number"
      -      },
      -      "paddingBottom": {
      -        "type": "number"
      -      },
      -      "paddingLeft": {
      -        "type": "number"
      -      },
      -      "paddingRight": {
      -        "type": "number"
      -      },
      -      "paddingTop": {
      -        "type": "number"
      -      },
      -      "paddingX": {
      -        "type": "number"
      -      },
      -      "paddingY": {
      -        "type": "number"
      -      },
      -      "rowGap": {
      -        "type": "number"
      -      },
      -      "rowSizes": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "description": "Fixed px.",
      -              "type": "number"
      -            },
      -            {
      -              "description": "\"fill\", \"2fr\" or \"hug\".",
      -              "type": "string"
      -            },
      -            {
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "maxItems": 64,
      -        "type": "array"
      -      },
      -      "rows": {
      -        "description": "Grid rows; items beyond the last row add rows that hug.",
      -        "type": "number"
      -      },
      -      "sizingH": {
      -        "enum": [
      -          "hug",
      -          "fixed",
      -          "fill"
      -        ],
      -        "type": "string"
      -      },
      -      "sizingV": {
      -        "enum": [
      -          "hug",
      -          "fixed",
      -          "fill"
      -        ],
      -        "type": "string"
      -      },
      -      "stacking": {
      -        "description": "Which item paints on top where items overlap.",
      -        "enum": [
      -          "last-on-top",
      -          "first-on-top"
      -        ],
      -        "type": "string"
      -      },
      -      "strokesIncluded": {
      -        "type": "boolean"
      -      },
      -      "wrap": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Figma variables and text styles: create / set a workspace variable (value, kind, alias such as \"brand/accent\", scopes, newName); bind / detach one on layers' fields (or a shadow with effect:<index>); apply-style / detach-style / create-style for text styles; set-mode puts frames in the brand's light or dark mode. List them with clearly_canvas_read view \"variables\"; delete with clearly_canvas_delete.",
      -    "properties": {
      -      "action": {
      -        "enum": [
      -          "create",
      -          "set",
      -          "bind",
      -          "detach",
      -          "apply-style",
      -          "detach-style",
      -          "create-style",
      -          "set-mode"
      -        ],
      -        "type": "string"
      -      },
      -      "alias": {
      -        "description": "create/set: follow another variable instead of a value, e.g. \"brand/accent\".",
      -        "type": "string"
      -      },
      -      "effect": {
      -        "description": "bind/detach on the layer's effect at this index (0 = first).",
      -        "type": "number"
      -      },
      -      "field": {
      -        "description": "The layer field (or, with effect, the effect field: color, x, y, blur, spread).",
      -        "enum": [
      -          "w",
      -          "h",
      -          "minW",
      -          "maxW",
      -          "minH",
      -          "maxH",
      -          "gap",
      -          "counterGap",
      -          "paddingT",
      -          "paddingR",
      -          "paddingB",
      -          "paddingL",
      -          "radius",
      -          "radiusTL",
      -          "radiusTR",
      -          "radiusBR",
      -          "radiusBL",
      -          "strokeWidth",
      -          "strokeT",
      -          "strokeR",
      -          "strokeB",
      -          "strokeL",
      -          "opacity",
      -          "fill",
      -          "stroke",
      -          "fontSize",
      -          "fontFamily",
      -          "fontWeight",
      -          "lineHeight",
      -          "letterSpacing",
      -          "paragraphSpacing",
      -          "characters",
      -          "visible",
      -          "color",
      -          "x",
      -          "y",
      -          "blur",
      -          "spread"
      -        ],
      -        "type": "string"
      -      },
      -      "ids": {
      -        "description": "Layer ids or unique names (bind, detach, apply-style, detach-style, set-mode; create-style copies the first text).",
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 100,
      -        "type": "array"
      -      },
      -      "kind": {
      -        "description": "The variable kind when the value alone is ambiguous.",
      -        "enum": [
      -          "number",
      -          "color",
      -          "string",
      -          "boolean"
      -        ],
      -        "type": "string"
      -      },
      -      "mode": {
      -        "description": "set-mode: the Brand mode for the frames.",
      -        "enum": [
      -          "light",
      -          "dark",
      -          "auto"
      -        ],
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "The variable (\"space/md\", \"color/accent\", \"product/name\", \"flags/promo\", or a Brand variable \"brand/accent\"), or the style name for create-style.",
      -        "type": "string"
      -      },
      -      "newName": {
      -        "description": "set: rename the variable.",
      -        "type": "string"
      -      },
      -      "op": {
      -        "enum": [
      -          "variable"
      -        ],
      -        "type": "string"
      -      },
      -      "scopes": {
      -        "description": "create/set: Figma VariableScope names that decide which fields offer it (e.g. [\"FRAME_FILL\"], [\"GAP\"]).",
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 24,
      -        "type": "array"
      -      },
      -      "style": {
      -        "description": "apply-style: the text style, e.g. \"brand/heading\" or \"marketing/eyebrow\".",
      -        "type": "string"
      -      },
      -      "value": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "description": "A #hex colour or text.",
      -            "type": "string"
      -          },
      -          {
      -            "type": "boolean"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Prototype: link a layer to a target frame (trigger, transition).",
      -    "properties": {
      -      "from": {
      -        "type": "string"
      -      },
      -      "op": {
      -        "enum": [
      -          "link"
      -        ],
      -        "type": "string"
      -      },
      -      "to": {
      -        "type": "string"
      -      },
      -      "transition": {
      -        "enum": [
      -          "instant",
      -          "dissolve",
      -          "slide-left",
      -          "slide-right",
      -          "slide-up",
      -          "slide-down",
      -          "push"
      -        ],
      -        "type": "string"
      -      },
      -      "trigger": {
      -        "enum": [
      -          "click",
      -          "hover",
      -          "press",
      -          "drag"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "from",
      -      "to"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Prototype: remove a layer's interaction.",
      -    "properties": {
      -      "from": {
      -        "type": "string"
      -      },
      -      "op": {
      -        "enum": [
      -          "unlink"
      -        ],
      -        "type": "string"
      -      },
      -      "trigger": {
      -        "enum": [
      -          "click",
      -          "hover",
      -          "press",
      -          "drag"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "from"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Prototype: choose the starting frame.",
      -    "properties": {
      -      "frameId": {
      -        "type": "string"
      -      },
      -      "op": {
      -        "enum": [
      -          "set-start"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "frameId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Move a path vertex and its handles by node-local dx/dy (read the network with view \"vectors\").",
      -    "properties": {
      -      "dx": {
      -        "type": "number"
      -      },
      -      "dy": {
      -        "type": "number"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "idx": {
      -        "type": "number"
      -      },
      -      "op": {
      -        "enum": [
      -          "move-vertex"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "id",
      -      "idx",
      -      "dx",
      -      "dy"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Add a node-local vertex, optionally connected to vertex connectTo.",
      -    "properties": {
      -      "connectTo": {
      -        "type": "number"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "op": {
      -        "enum": [
      -          "add-vertex"
      -        ],
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "id",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Delete a vertex and its segments.",
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "idx": {
      -        "type": "number"
      -      },
      -      "op": {
      -        "enum": [
      -          "delete-vertex"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "id",
      -      "idx"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Set a Bézier handle (a or b) on segment seg, node-local.",
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "op": {
      -        "enum": [
      -          "set-handle"
      -        ],
      -        "type": "string"
      -      },
      -      "seg": {
      -        "type": "number"
      -      },
      -      "which": {
      -        "enum": [
      -          "a",
      -          "b"
      -        ],
      -        "type": "string"
      -      },
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "id",
      -      "seg",
      -      "which",
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "A frame's layout grid, shown on screen only: margins, columns, rows, a baseline grid and guides. Lengths in unit (mm on a print page, px elsewhere); baseline in pt on a print page. inside/outside margins follow side (recto binds left). fold puts one column per panel and fold guides. Returns frame-relative numbers to place on: content box, columns [{x,w}], spans (width of n columns), rows, baseline { first, step }.",
      -    "properties": {
      -      "baseline": {
      -        "type": "number"
      -      },
      -      "baselineOffset": {
      -        "type": "number"
      -      },
      -      "clear": {
      -        "type": "boolean"
      -      },
      -      "columns": {
      -        "maximum": 48,
      -        "minimum": 1,
      -        "type": "number"
      -      },
      -      "fold": {
      -        "enum": [
      -          "half",
      -          "roll",
      -          "z",
      -          "gate"
      -        ],
      -        "type": "string"
      -      },
      -      "guides": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "at": {
      -              "type": "number"
      -            },
      -            "axis": {
      -              "enum": [
      -                "x",
      -                "y"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "axis",
      -            "at"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 24,
      -        "type": "array"
      -      },
      -      "gutter": {
      -        "type": "number"
      -      },
      -      "id": {
      -        "description": "The frame or print page.",
      -        "type": "string"
      -      },
      -      "margin": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "bottom": {
      -                "type": "number"
      -              },
      -              "inside": {
      -                "type": "number"
      -              },
      -              "left": {
      -                "type": "number"
      -              },
      -              "outside": {
      -                "type": "number"
      -              },
      -              "right": {
      -                "type": "number"
      -              },
      -              "top": {
      -                "type": "number"
      -              }
      -            },
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "op": {
      -        "enum": [
      -          "grid"
      -        ],
      -        "type": "string"
      -      },
      -      "rowGutter": {
      -        "type": "number"
      -      },
      -      "rows": {
      -        "maximum": 48,
      -        "minimum": 1,
      -        "type": "number"
      -      },
      -      "side": {
      -        "enum": [
      -          "recto",
      -          "verso"
      -        ],
      -        "type": "string"
      -      },
      -      "unit": {
      -        "enum": [
      -          "mm",
      -          "in",
      -          "pt",
      -          "px"
      -        ],
      -        "type": "string"
      -      },
      -      "visible": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Save this canvas's print settings: output dpi, bleedMm, safeMm, cropMarks, regMarks, mirror. Export of a print page uses them. DPI changes output pixels, never layout units.",
      -    "properties": {
      -      "bleedMm": {
      -        "maximum": 50,
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "cropMarks": {
      -        "type": "boolean"
      -      },
      -      "dpi": {
      -        "maximum": 1200,
      -        "minimum": 72,
      -        "type": "number"
      -      },
      -      "mirror": {
      -        "type": "boolean"
      -      },
      -      "op": {
      -        "enum": [
      -          "print"
      -        ],
      -        "type": "string"
      -      },
      -      "regMarks": {
      -        "type": "boolean"
      -      },
      -      "safeMm": {
      -        "maximum": 100,
      -        "minimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "op"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Patch layers; use it to set fields between other ops.",
      +    "properties": {
      +      "coordinateSpace": {
      +        "enum": [
      +          "parent",
      +          "world"
      +        ],
      +        "type": "string"
      +      },
      +      "ids": {
      +        "description": "Node ids or unique layer names.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 100,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "op": {
      +        "enum": [
      +          "patch"
      +        ],
      +        "type": "string"
      +      },
      +      "patch": {
      +        "description": "The fields of patch; checked against that schema.",
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "ids",
      +      "patch"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Group existing layers into a named group; members stay editable.",
      +    "properties": {
      +      "ids": {
      +        "description": "Node ids or unique layer names.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 100,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "group"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "ids",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Dissolve groups or frames, keeping their members in place.",
      +    "properties": {
      +      "ids": {
      +        "description": "Node ids or unique layer names.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 100,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "op": {
      +        "enum": [
      +          "ungroup"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "ids"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Put layers that share a parent into a new frame that fits them (plus padding) without moving them; autoLayout makes it a live layout frame.",
      +    "properties": {
      +      "autoLayout": {
      +        "type": "object"
      +      },
      +      "fill": {
      +        "anyOf": [
      +          {
      +            "description": "CSS hex colour, none or transparent.",
      +            "type": "string"
      +          },
      +          {
      +            "items": {
      +              "type": "number"
      +            },
      +            "maxItems": 4,
      +            "minItems": 4,
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "ids": {
      +        "description": "Node ids or unique layer names.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 100,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "wrap"
      +        ],
      +        "type": "string"
      +      },
      +      "padding": {
      +        "type": "number"
      +      },
      +      "radius": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "ids",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Combine path layers into a live boolean group (subtract: the first id is the base); operands stay editable.",
      +    "properties": {
      +      "ids": {
      +        "description": "Node ids or unique layer names.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 100,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "mode": {
      +        "enum": [
      +          "union",
      +          "subtract",
      +          "exclude",
      +          "intersect"
      +        ],
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "boolean"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "ids",
      +      "mode"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Expand an SVG object into native layers; the source is kept in a hidden recovery layer.",
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "expand-svg"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Align, distribute, tidy or pack layers. Geometry only.",
      +    "properties": {
      +      "gap": {
      +        "type": "number"
      +      },
      +      "ids": {
      +        "description": "Node ids or unique layer names.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 100,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "mode": {
      +        "enum": [
      +          "align-left",
      +          "align-right",
      +          "align-hcenter",
      +          "align-top",
      +          "align-bottom",
      +          "align-vcenter",
      +          "distribute-h",
      +          "distribute-v",
      +          "tidy",
      +          "pack-h",
      +          "pack-v"
      +        ],
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "arrange"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "ids",
      +      "mode"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Change stacking order.",
      +    "properties": {
      +      "ids": {
      +        "description": "Node ids or unique layer names.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 100,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "mode": {
      +        "enum": [
      +          "front",
      +          "back",
      +          "forward",
      +          "backward"
      +        ],
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "order"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "ids",
      +      "mode"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Scale layers with their descendants, text and strokes, by factor.",
      +    "properties": {
      +      "factor": {
      +        "type": "number"
      +      },
      +      "ids": {
      +        "description": "Node ids or unique layer names.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 100,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "op": {
      +        "enum": [
      +          "scale"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "ids",
      +      "factor"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Reflect layers horizontally (x) or vertically (y).",
      +    "properties": {
      +      "axis": {
      +        "enum": [
      +          "x",
      +          "y"
      +        ],
      +        "type": "string"
      +      },
      +      "ids": {
      +        "description": "Node ids or unique layer names.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 100,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "op": {
      +        "enum": [
      +          "flip"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "ids",
      +      "axis"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Rotate layers clockwise by angle about cx/cy, or each about its centre. Paths rotate in their geometry; frames stay axis-aligned.",
      +    "properties": {
      +      "angle": {
      +        "type": "number"
      +      },
      +      "cx": {
      +        "type": "number"
      +      },
      +      "cy": {
      +        "type": "number"
      +      },
      +      "ids": {
      +        "description": "Node ids or unique layer names.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 100,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "op": {
      +        "enum": [
      +          "rotate"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "ids",
      +      "angle"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Figma auto layout on a frame: a row (h), column (v) or grid that re-flows as children change. Omitted settings keep their values; the first call infers them from the children. enabled:false removes it, keeping positions. Child settings (Fill, min/max, ignore layout, grid cell) are patch fields on the child.",
      +    "properties": {
      +      "align": {
      +        "description": "Cross axis; baseline lines up text in a row. Grid: cells' default vertical alignment.",
      +        "enum": [
      +          "start",
      +          "center",
      +          "end",
      +          "baseline"
      +        ],
      +        "type": "string"
      +      },
      +      "columnGap": {
      +        "type": "number"
      +      },
      +      "columnSizes": {
      +        "items": {
      +          "anyOf": [
      +            {
      +              "description": "Fixed px.",
      +              "type": "number"
      +            },
      +            {
      +              "description": "\"fill\", \"2fr\" or \"hug\".",
      +              "type": "string"
      +            },
      +            {
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "maxItems": 64,
      +        "type": "array"
      +      },
      +      "columns": {
      +        "description": "Grid columns.",
      +        "type": "number"
      +      },
      +      "counterAlignContent": {
      +        "description": "Wrap: space-between spreads the rows across a fixed height.",
      +        "enum": [
      +          "start",
      +          "space-between"
      +        ],
      +        "type": "string"
      +      },
      +      "counterGap": {
      +        "description": "Between wrapped rows or columns; grid: the row gap.",
      +        "type": "number"
      +      },
      +      "direction": {
      +        "description": "Row, column or grid.",
      +        "enum": [
      +          "h",
      +          "v",
      +          "grid"
      +        ],
      +        "type": "string"
      +      },
      +      "enabled": {
      +        "type": "boolean"
      +      },
      +      "gap": {
      +        "anyOf": [
      +          {
      +            "description": "Between items; negative overlaps them. Grid: the column gap.",
      +            "type": "number"
      +          },
      +          {
      +            "description": "Auto spacing (Between).",
      +            "enum": [
      +              "auto"
      +            ],
      +            "type": "string"
      +          }
      +        ]
      +      },
      +      "hug": {
      +        "type": "boolean"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "justify": {
      +        "description": "Main axis; space-* is Figma's Auto gap (Between / Around / Evenly). Grid: cells' default horizontal alignment.",
      +        "enum": [
      +          "start",
      +          "center",
      +          "end",
      +          "space-between",
      +          "space-around",
      +          "space-evenly"
      +        ],
      +        "type": "string"
      +      },
      +      "maxH": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "maxW": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "minH": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "minW": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "op": {
      +        "enum": [
      +          "auto-layout"
      +        ],
      +        "type": "string"
      +      },
      +      "padding": {
      +        "type": "number"
      +      },
      +      "paddingBottom": {
      +        "type": "number"
      +      },
      +      "paddingLeft": {
      +        "type": "number"
      +      },
      +      "paddingRight": {
      +        "type": "number"
      +      },
      +      "paddingTop": {
      +        "type": "number"
      +      },
      +      "paddingX": {
      +        "type": "number"
      +      },
      +      "paddingY": {
      +        "type": "number"
      +      },
      +      "rowGap": {
      +        "type": "number"
      +      },
      +      "rowSizes": {
      +        "items": {
      +          "anyOf": [
      +            {
      +              "description": "Fixed px.",
      +              "type": "number"
      +            },
      +            {
      +              "description": "\"fill\", \"2fr\" or \"hug\".",
      +              "type": "string"
      +            },
      +            {
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "maxItems": 64,
      +        "type": "array"
      +      },
      +      "rows": {
      +        "description": "Grid rows; items beyond the last row add rows that hug.",
      +        "type": "number"
      +      },
      +      "sizingH": {
      +        "enum": [
      +          "hug",
      +          "fixed",
      +          "fill"
      +        ],
      +        "type": "string"
      +      },
      +      "sizingV": {
      +        "enum": [
      +          "hug",
      +          "fixed",
      +          "fill"
      +        ],
      +        "type": "string"
      +      },
      +      "stacking": {
      +        "description": "Which item paints on top where items overlap.",
      +        "enum": [
      +          "last-on-top",
      +          "first-on-top"
      +        ],
      +        "type": "string"
      +      },
      +      "strokesIncluded": {
      +        "type": "boolean"
      +      },
      +      "wrap": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Create or set workspace variables, bind or detach them on layer fields and shadows, create or apply text styles, and set the brand mode on frames.",
      +    "properties": {
      +      "action": {
      +        "enum": [
      +          "create",
      +          "set",
      +          "bind",
      +          "detach",
      +          "apply-style",
      +          "detach-style",
      +          "create-style",
      +          "set-mode"
      +        ],
      +        "type": "string"
      +      },
      +      "alias": {
      +        "description": "create/set: follow another variable instead of a value, e.g. \"brand/accent\".",
      +        "type": "string"
      +      },
      +      "effect": {
      +        "description": "bind/detach on the layer's effect at this index (0 = first).",
      +        "type": "number"
      +      },
      +      "field": {
      +        "description": "The layer field (or, with effect, the effect field: color, x, y, blur, spread).",
      +        "enum": [
      +          "w",
      +          "h",
      +          "minW",
      +          "maxW",
      +          "minH",
      +          "maxH",
      +          "gap",
      +          "counterGap",
      +          "paddingT",
      +          "paddingR",
      +          "paddingB",
      +          "paddingL",
      +          "radius",
      +          "radiusTL",
      +          "radiusTR",
      +          "radiusBR",
      +          "radiusBL",
      +          "strokeWidth",
      +          "strokeT",
      +          "strokeR",
      +          "strokeB",
      +          "strokeL",
      +          "opacity",
      +          "fill",
      +          "stroke",
      +          "fontSize",
      +          "fontFamily",
      +          "fontWeight",
      +          "lineHeight",
      +          "letterSpacing",
      +          "paragraphSpacing",
      +          "characters",
      +          "visible",
      +          "color",
      +          "x",
      +          "y",
      +          "blur",
      +          "spread"
      +        ],
      +        "type": "string"
      +      },
      +      "ids": {
      +        "description": "Layer ids or unique names (bind, detach, apply-style, detach-style, set-mode; create-style copies the first text).",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 100,
      +        "type": "array"
      +      },
      +      "kind": {
      +        "description": "The variable kind when the value alone is ambiguous.",
      +        "enum": [
      +          "number",
      +          "color",
      +          "string",
      +          "boolean"
      +        ],
      +        "type": "string"
      +      },
      +      "mode": {
      +        "description": "set-mode: the Brand mode for the frames.",
      +        "enum": [
      +          "light",
      +          "dark",
      +          "auto"
      +        ],
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "The variable (\"space/md\", \"color/accent\", \"product/name\", \"flags/promo\", or a Brand variable \"brand/accent\"), or the style name for create-style.",
      +        "type": "string"
      +      },
      +      "newName": {
      +        "description": "set: rename the variable.",
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "variable"
      +        ],
      +        "type": "string"
      +      },
      +      "scopes": {
      +        "description": "create/set: Figma VariableScope names that decide which fields offer it (e.g. [\"FRAME_FILL\"], [\"GAP\"]).",
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 24,
      +        "type": "array"
      +      },
      +      "style": {
      +        "description": "apply-style: the text style, e.g. \"brand/heading\" or \"marketing/eyebrow\".",
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "description": "A #hex colour or text.",
      +            "type": "string"
      +          },
      +          {
      +            "type": "boolean"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Prototype: link a layer to a target frame (trigger, transition).",
      +    "properties": {
      +      "from": {
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "link"
      +        ],
      +        "type": "string"
      +      },
      +      "to": {
      +        "type": "string"
      +      },
      +      "transition": {
      +        "enum": [
      +          "instant",
      +          "dissolve",
      +          "slide-left",
      +          "slide-right",
      +          "slide-up",
      +          "slide-down",
      +          "push"
      +        ],
      +        "type": "string"
      +      },
      +      "trigger": {
      +        "enum": [
      +          "click",
      +          "hover",
      +          "press",
      +          "drag"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "from",
      +      "to"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Prototype: remove a layer's interaction.",
      +    "properties": {
      +      "from": {
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "unlink"
      +        ],
      +        "type": "string"
      +      },
      +      "trigger": {
      +        "enum": [
      +          "click",
      +          "hover",
      +          "press",
      +          "drag"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "from"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Prototype: choose the starting frame.",
      +    "properties": {
      +      "frameId": {
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "set-start"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "frameId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Move a path vertex and its handles by node-local dx/dy (read the network with view \"vectors\").",
      +    "properties": {
      +      "dx": {
      +        "type": "number"
      +      },
      +      "dy": {
      +        "type": "number"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "idx": {
      +        "type": "number"
      +      },
      +      "op": {
      +        "enum": [
      +          "move-vertex"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "id",
      +      "idx",
      +      "dx",
      +      "dy"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Add a node-local vertex, optionally connected to vertex connectTo.",
      +    "properties": {
      +      "connectTo": {
      +        "type": "number"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "add-vertex"
      +        ],
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "id",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Delete a vertex and its segments.",
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "idx": {
      +        "type": "number"
      +      },
      +      "op": {
      +        "enum": [
      +          "delete-vertex"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "id",
      +      "idx"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Set a Bézier handle (a or b) on segment seg, node-local.",
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "op": {
      +        "enum": [
      +          "set-handle"
      +        ],
      +        "type": "string"
      +      },
      +      "seg": {
      +        "type": "number"
      +      },
      +      "which": {
      +        "enum": [
      +          "a",
      +          "b"
      +        ],
      +        "type": "string"
      +      },
      +      "x": {
      +        "type": "number"
      +      },
      +      "y": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "id",
      +      "seg",
      +      "which",
      +      "x",
      +      "y"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A frame's layout grid, shown on screen only: margins, columns, rows, a baseline grid and guides. Lengths in unit (mm on a print page, px elsewhere); baseline in pt on a print page. inside/outside margins follow side (recto binds left). fold puts one column per panel and fold guides. Returns frame-relative numbers to place on: content box, columns [{x,w}], spans (width of n columns), rows, baseline { first, step }.",
      +    "properties": {
      +      "baseline": {
      +        "type": "number"
      +      },
      +      "baselineOffset": {
      +        "type": "number"
      +      },
      +      "clear": {
      +        "type": "boolean"
      +      },
      +      "columns": {
      +        "maximum": 48,
      +        "minimum": 1,
      +        "type": "number"
      +      },
      +      "fold": {
      +        "enum": [
      +          "half",
      +          "roll",
      +          "z",
      +          "gate"
      +        ],
      +        "type": "string"
      +      },
      +      "guides": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "at": {
      +              "type": "number"
      +            },
      +            "axis": {
      +              "enum": [
      +                "x",
      +                "y"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "axis",
      +            "at"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 24,
      +        "type": "array"
      +      },
      +      "gutter": {
      +        "type": "number"
      +      },
      +      "id": {
      +        "description": "The frame or print page.",
      +        "type": "string"
      +      },
      +      "margin": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "bottom": {
      +                "type": "number"
      +              },
      +              "inside": {
      +                "type": "number"
      +              },
      +              "left": {
      +                "type": "number"
      +              },
      +              "outside": {
      +                "type": "number"
      +              },
      +              "right": {
      +                "type": "number"
      +              },
      +              "top": {
      +                "type": "number"
      +              }
      +            },
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "op": {
      +        "enum": [
      +          "grid"
      +        ],
      +        "type": "string"
      +      },
      +      "rowGutter": {
      +        "type": "number"
      +      },
      +      "rows": {
      +        "maximum": 48,
      +        "minimum": 1,
      +        "type": "number"
      +      },
      +      "side": {
      +        "enum": [
      +          "recto",
      +          "verso"
      +        ],
      +        "type": "string"
      +      },
      +      "unit": {
      +        "enum": [
      +          "mm",
      +          "in",
      +          "pt",
      +          "px"
      +        ],
      +        "type": "string"
      +      },
      +      "visible": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Save this canvas's print settings: output dpi, bleedMm, safeMm, cropMarks, regMarks, mirror. Export of a print page uses them. DPI changes output pixels, never layout units.",
      +    "properties": {
      +      "bleedMm": {
      +        "maximum": 50,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "cropMarks": {
      +        "type": "boolean"
      +      },
      +      "dpi": {
      +        "maximum": 1200,
      +        "minimum": 72,
      +        "type": "number"
      +      },
      +      "mirror": {
      +        "type": "boolean"
      +      },
      +      "op": {
      +        "enum": [
      +          "print"
      +        ],
      +        "type": "string"
      +      },
      +      "regMarks": {
      +        "type": "boolean"
      +      },
      +      "safeMm": {
      +        "maximum": 100,
      +        "minimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "op"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / target / description
      Previous value: -"Canvas id, key or exact title. Use the id returned by creation."New value: +"Canvas id, key or exact title."
  2. Added

TDQS

A4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructive=true, but the description adds substantial behavior beyond them: all-or-nothing validation before any change, expectedRev stale-revision refusal, ordering of ops after patches, and the 200-edit/100-op caps. These are exactly the traits an agent needs to sequence a mutation safely.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and atomicity, then limits, then ordering, then preconditions, with no filler. The phrase "ids and patch apply a common patch" is slightly cryptic and costs a re-read, but the rest is dense and purposeful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no explanation, and the description covers atomicity, validation timing, revision checks, operation ordering, and caps. What is missing is any hint about failure modes when validation rejects, and no guidance on choosing between edits and ops for a given change.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 57% schema coverage across 7 params and a very large nested schema, the description still clarifies how the parameters compose: ids+patch apply a common patch, edits holds up to 200 distinct patches, ops run afterward in request order. It does not explain target or the coordinateSpace/patch field semantics, leaving those to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Change existing canvas layers atomically in one revision" gives a specific verb (change) and resource (existing canvas layers) plus the key differentiator of atomicity, which separates it from add/delete siblings. It does not explicitly name a sibling it competes with, so an agent must infer the boundary from the word "existing".

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by "change existing" and by the note that it works without an open editor or local CLI, which tells the agent this is the headless path. There is no explicit when-not guidance and no named alternative (e.g. clearly_canvas_add, clearly_canvas_delete, clearly_edit), so the agent must reason about boundaries itself.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.