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"
+ }
+]