genable-mcp

v0.1.3
io.github.musepy/genable-mcp Checked 3 days ago Published 6 months ago

Write to Figma from any MCP client (Claude Code, Cursor).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

jsx

Create design trees with nested JSX markup. One jsx call builds a complete subtree atomically — nesting is the hierarchy. Keep a single logical unit inside one call; the returned root's children are already built, not stubs to be filled in later. Examples: jsx({markup: "<frame name='Card' layout='column' padding={16} fill='#FFFFFF' w='fill' />"}) jsx({markup: "<frame name='Row' layout='row' gap={8} padding={12} w='fill'><icon name='lucide:settings' size={20} /><text name='Label' w='fill'>Account</text><icon name='lucide:chevron-right' size={16} /></frame>"}) Elements: frame, text, rect…

ParameterTypeDescription
markup *stringJSX-like nested markup string
insertIndexnumberPosition among parent siblings (0 = first). Omit to append at end. Ignored when replaceId is set (inherits old node index).
parentstringTarget parent node ID — the frame/container the new subtree will live inside
replaceIdstringReplace this existing node in-place (keeps parent + sibling index). Old node is deleted on success. Markup must be single-root. Mutually exclusive with parent.

inspect

Read design node(s) — choose what to surface with `facets`. Default (no facets) returns a skeleton: id, name, type, role, children. For anything else, list the facets you need — nothing else is included. Facets: structure name, type, size, layout shorthand — cheap overview layout layoutMode/gap/padding/align/sizing (row/column, fill/hug, etc.) paint|fill fills + Paint.boundVariables.color (see bound tokens) stroke strokes, strokeWeight, strokeAlign, dashPattern effects shadows, blurs typography|text fontFamily, fontSize, fontWeight, lineHeight, letterSpaci…

ParameterTypeDescription
node *string"/" for page root, or node ID (e.g. "100:5").
depthnumberMax depth (default: 5, max: 10)
facetsarrayProperty buckets to surface. Omit for a skeleton-only response.

describe

Validate a design subtree — semantic description, role detection, and lint rules. Checks for layout conflicts, overflow, missing properties, and structural issues. Parameters: node: Node ID to describe (e.g. "100:5"). Required. depth: How deep to check children (default: 3, max: 8). Returns per-node: role, visual summary, layout summary, and issues (severity: error/warning/info). Examples: describe({node: "100:5"}) → validate subtree, depth 3 describe({node: "100:5", depth: 1}) → shallow check (root + direct children only)

ParameterTypeDescription
node *stringNode ID to describe (e.g. "100:5").
depthnumberMax depth to check (default: 3, max: 8)

edit

Batch update properties on multiple nodes. For single-property changes, prefer focused setters: set_text — text content set_fill — fill/background color set_stroke — border set_layout — padding, gap, direction Use edit for batch fixes or properties not covered by setters (sizing, radius, opacity, effects, component props): edit({nodes: [ {node: "1:1", props: {w: "fill", corner: 8}}, // Figma native props {node: "1:2", props: {opacity: 0.6}}, {node: "1:3", props: {Label: "Sign In"}}, // instance TEXT prop (by display name) ]}) For instance…

ParameterTypeDescription
contentstringNew text content (single mode)
nodestringNode ID (e.g. "1:2") from jsx/inspect results
nodesarrayBatch: array of {node, props?, content?} objects. No hard item cap — real ceiling is LLM output stream length (~10KB+ of rendered params can stall mid-JSON). If a batch is large and props are rich,…
propsobjectProperties to update (single mode)

find_nodes

Search nodes by name or type. Scoped to the current page — call switch_page first if your target lives on a different page. Examples: find_nodes({query: "Button"}) find_nodes({query: "frame", scope: "1:2"})

ParameterTypeDescription
query *stringSearch query — matches node name or type
scopestringLimit search to subtree. Node ID (e.g. "1:2"). Default: entire page.

discover_props

Discover unique property values in a subtree. Examples: discover_props({node: "1:2", props: ["fillColor", "fontSize"]}) Searchable properties: fillColor, textColor, strokeColor, strokeWeight, opacity, cornerRadius, gap, fontSize, fontFamily, fontWeight.

ParameterTypeDescription
node *stringTarget node ID (e.g. "1:2")
props *arrayProperties to discover

replace_props

Bulk find-and-replace property values across a subtree (target node + all descendants). Destructive batch mutation — no preview, no undo across many nodes. Returns per-rule match counts. Use when: - Theming pass: change every #FFF fill to #000 across a screen - Token migration: bump every fontSize from 14 to 16 - Normalizing values left inconsistent by earlier passes - The alternative is N targeted single-node calls (set_text / set_fill / edit) Returns: { data: { replacements: [{ rule: 0, matched: 12 }, { rule: 1, matched: 0 }] } } Parameters beyond schema: - `node` is the subtree root; s…

ParameterTypeDescription
node *stringTarget node ID (e.g. "1:2")
rules *arrayReplacement rules

find_references

Find every node on the current page that references a given variable. This is the REVERSE of inspect: inspect asks "what does this node bind?", find_references asks "who uses this variable?". Use it when renaming, auditing, or swapping tokens — you need to know all the binding sites before you touch the variable. Scan scope: currentPage only. Invisible nodes are skipped by default. Node-level bindings (e.g. boundVariables.paddingLeft) and per-paint color bindings (fills[i].boundVariables.color, strokes[i].boundVariables.color) are both returned. Parameters: variable — VariableID (e.g…

ParameterTypeDescription
variable *stringVariableID to look up (e.g. "VariableID:1:5"). Get IDs from list_variables.

delete_node

Delete a node and its children. Examples: delete_node({node: "1:2"})

ParameterTypeDescription
node *stringNode ID (e.g. "1:2")

move_node

Relocate a node without recreating it. Preserves IDs, bound variables, and component instances across the move, so callers tracking the node by ID never need to re-discover it. Use for: (a) changing child order within a container, (b) moving a subtree into a different parent, (c) fixing a placement mistake after jsx. Examples: move_node({node: "1:3", name: "NewTitle"}) — rename in place move_node({node: "1:3", parent: "1:4"}) — move into parent 1:4 move_node({node: "1:5", index: 0}) — reorder within current parent

ParameterTypeDescription
node *stringNode ID (e.g. "1:3") to move/rename
indexnumberReorder position among siblings. 0 = first, -1 = last.
namestringNew name (rename without changing parent)
parentstringTarget parent node ID — the frame/container the node should live inside after the call

clone_node

Deep-copy a node with optional property overrides. Examples: clone_node({node: "1:2"}) — clone to page root, same name clone_node({node: "1:2", parent: "/"}) — clone to page root explicitly clone_node({node: "1:2", parent: "/", name: "Hero Copy"}) — clone to root with custom name clone_node({node: "1:2", parent: "1:4"}) — clone into parent node 1:4 clone_node({node: "1:2", parent: "1:4", overrides: {"bg": "#D9D9D9"}})

ParameterTypeDescription
node *stringSource node ID (e.g. "1:2")
namestringName for the cloned node. Defaults to source node name.
overridesobjectProperty overrides. Use "Child.prop" for child overrides.
parentstringTarget parent node ID the clone should live inside, or "/" for page root. Defaults to page root.

skill

Load a procedural skill — workflow + tool sequence + anti-patterns. Use FIRST when the user is changing/adjusting existing canvas, OR before creating a new design if a matching skill exists. Example: skill({ name: "restyle" })

ParameterTypeDescription
name *stringThe skill name exactly as it appears in the KNOWLEDGE LIBRARY menu — no "skill:" prefix, no quotes.

style

Load a visual style preset as INSPIRATION — color tokens, typography, shape, depth. Treat as a reference library, not a cage: pick one wholesale, mix elements, or invent your own. You are not restricted to the menu. Example: style({ name: "neon-cyber" })

ParameterTypeDescription
name *stringThe style name exactly as it appears in the KNOWLEDGE LIBRARY menu — no "style:" prefix, no quotes.

guideline

Load a page-type design guideline — layout patterns for landing pages, dashboards, login flows, forms, etc. Example: guideline({ name: "form" })

ParameterTypeDescription
name *stringThe guideline name exactly as it appears in the KNOWLEDGE LIBRARY menu — no "guideline:" prefix, no quotes.

help

Load narrow how-to / process help — tool usage rules, edge cases, naming conventions. Example: help({ name: "interaction-model" })

ParameterTypeDescription
name *stringThe help name exactly as it appears in the KNOWLEDGE LIBRARY menu — no "help:" prefix, no quotes.

list_variables

List variables as a flat array with referenced collections. Returns {data: {variables[], collections[], nextCursor?}}. Each variable carries its full Figma shape: id, name, variableCollectionId, resolvedType, valuesByMode. collections[] only includes collections referenced by the returned variables (use for mode-name resolution). Parameters: collection — VariableCollectionId to filter by filter — substring match on variable name (case-insensitive) cursor — opaque pagination cursor from a previous call limit — max variables per page (default 100) Examples: list…

ParameterTypeDescription
collectionstringVariableCollectionId to filter by
cursorstringOpaque pagination cursor from a previous call
filterstringSubstring match on variable name (case-insensitive)
limitnumberMax variables per page (default 100)

create_collection

Create a VariableCollection with named modes. The first mode in the array becomes the default mode. Returns {data: {id, modes: [{modeId, name}]}} — use those modeIds with set_variable_value and set_variable_mode. Examples: create_collection({name: "Theme", modes: ["Light", "Dark"]}) create_collection({name: "Device", modes: ["Desktop", "Tablet", "Mobile"]})

ParameterTypeDescription
modes *arrayMode names (first becomes default)
name *stringCollection name

create_variable

Create a variable in an existing collection. No value is set here — use set_variable_value after. Returns {data: {id}}. Examples: create_variable({collection: "VariableCollectionId:1:2", name: "Theme/bg", type: "COLOR"}) create_variable({collection: "VariableCollectionId:1:2", name: "spacing/md", type: "FLOAT"})

ParameterTypeDescription
collection *stringVariableCollectionId to create the variable in
name *stringVariable name (slashes denote hierarchy in the Figma UI)
type *stringVariable type

ensure_collection

Idempotent VariableCollection creation — safe to retry. Returns existing collection if one with the same name + identical mode list already exists, otherwise creates a new one. Spec §3.1. Prefer this over create_collection — re-running with the same name + modes returns the existing collection instead of creating a duplicate. Omit idempotency_key — the handler computes it canonically from (name, modes). Pass it only if you need strict concurrency-safety validation (LLMs should not try to compute SHA-256 inline; placeholder strings are rejected). Returns {data: {collection_id, modes:…

ParameterTypeDescription
modes *arrayMode names (first becomes default)
name *stringCollection name
idempotency_keystringOptional. Handler auto-computes canonically if omitted. Pass only if you need strict concurrency-safety validation against the SHA-256 formula in spec §3.1.

ensure_variable

Idempotent variable creation — populates values_by_mode in one shot. Prefer this over create_variable — re-running with the same args returns the existing variable instead of creating a duplicate. Behavior (spec §3.1): - Exactly 1 variable with (collection_id, name, type) in target collection → idempotent reuse. - 0 in target, matches in OTHER collections → create new in target + warning NAME_EXISTS_OUTSIDE_TARGET_COLLECTION. - 0 anywhere → create new. - 2+ in target collection (Figma allows duplicates) → fail SAME_COLLECTION_NAME_DUPLICATE. values_by_mode keys can be e…

ParameterTypeDescription
collection_id *stringTarget VariableCollectionId — strict ID, no name lookup.
name *stringVariable name (slashes denote hierarchy).
type *stringVariable type
values_by_mode *objectMap of mode name OR modeId → value. Hex strings allowed for COLOR.
fallback_reasonstringREQUIRED iff mode_coverage_required="opt-in-fallback". Must contain the structured phrase "fallback to <mode_name>". Persisted on the variable for audit trail.
idempotency_keystringOptional. Handler auto-computes canonically if omitted. Pass only if you need strict concurrency-safety validation against the SHA-256 formula in spec §3.1.
mode_coverage_requiredstringMode coverage policy — "all" (default; every mode must have explicit value) or "opt-in-fallback" (allow fallback, requires fallback_reason).

set_variable_value

Set a variable's value for a specific mode. Thin wrapper over Figma's variable.setValueForMode(modeId, value). Call once per mode. Value is a raw value (COLOR/FLOAT/STRING/BOOLEAN) OR an alias object {type: "VARIABLE_ALIAS", id: "VariableID:x:y"}. Hex strings are accepted for COLOR and normalized to {r,g,b,a} in 0-1 range. Examples: set_variable_value({variable: "VariableID:1:5", mode: "1:0", value: "#FFFFFF"}) set_variable_value({variable: "VariableID:1:5", mode: "1:1", value: {r: 0.1, g: 0.1, b: 0.1, a: 1}}) set_variable_value({variable: "VariableID:1:6", mode: "1:0", value: 16}) s…

ParameterTypeDescription
mode *stringMode id from the variable's collection (e.g. "1:0")
value *objectRaw value (COLOR/FLOAT/STRING/BOOLEAN) or {type: "VARIABLE_ALIAS", id}
variable *stringVariableID to set

bind_variable

Bind a FLOAT, BOOLEAN, or STRING variable to a node property. prop is a flat Figma bindable field (e.g. fontSize, itemSpacing, paddingTop, cornerRadius, opacity, visible, width, height, characters). Shorthands: gap → itemSpacing, padding → paddingTop, corner → cornerRadius, font-size → fontSize. COLOR variables are NOT bound here — they live inside Paint objects. To apply a color token, specify it at the source instead: • At creation: jsx <frame bg="$TokenName" ...> or fill="$TokenName" • Post-hoc: set_fill({node, bg: "$TokenName"}) or set_stroke When selecting which…

ParameterTypeDescription
node *stringNode ID (e.g. "1:2")
prop *stringFlat Figma bindable field (fontSize, paddingTop, itemSpacing, visible, characters, etc.). COLOR props (fills/strokes) not supported — use set_fill/jsx.
variable *stringVariableID to bind (FLOAT/BOOLEAN/STRING only)

set_variable_mode

Set a node to use a specific mode of a variable collection. This controls which variable values the node displays. For example, set a frame to use "Dark" mode of the "Theme" collection so all bound variables show dark values. Examples: set_variable_mode({node: "1:2", collection: "VariableCollectionId:1:2", mode: "1:1"}) set_variable_mode({node: "1:5", collection: "VariableCollectionId:1:3", mode: "1:2"})

ParameterTypeDescription
collection *stringVariableCollectionId
mode *stringMode id (e.g. "1:1")
node *stringNode ID (e.g. "1:2")

create_component

Convert a frame or group to a Figma component. Examples: create_component({node: "1:2"})

ParameterTypeDescription
node *stringNode ID (e.g. "1:2") to convert

combine_components

Combine multiple components into a variant set (ComponentSet). Examples: combine_components({nodes: ["1:2", "1:3", "1:4"], name: "Button"})

ParameterTypeDescription
nodes *arrayComponent node IDs to combine
namestringComponent set name

add_component_prop

Add a component property and bind it to a child node. For TEXT properties: binds to the target text node's characters, so instances can override the text content. For BOOLEAN properties: binds to the target node's visibility. Parameters: node: The component node ID (must be COMPONENT or COMPONENT_SET). name: Property display name. type: TEXT, BOOLEAN, or INSTANCE_SWAP. default: Default value. bind: Child node ID to bind this property to. For TEXT, binds to text content. For BOOLEAN, binds to visibility. Examples: add_component_prop({node: "1:2", name: "Label", type: "TEXT", defa…

ParameterTypeDescription
name *stringProperty name
node *stringComponent node ID (e.g. "1:2")
type *stringProperty type
bindstringChild node ID to bind this property to
defaultstringDefault value

list_component_props

List properties and variants of a component, component set, or instance. Examples: list_component_props({node: "1:2"})

ParameterTypeDescription
node *stringComponent/instance node ID (e.g. "1:2")

create_instance

Create an instance of an existing component. Mutates the canvas — appends a new InstanceNode as the last child of `parent` (or the active page root if omitted). The instance is LINKED to the component master, so future component edits propagate. Returns the new instance's nodeId. Use when: - Spawning runtime copies of a Component master (buttons, list items, cards) - Reusing a design-system component in a fresh layout - Programmatic instantiation outside a jsx() tree-build Returns: { data: { id: "5:42", name: "Button", componentId: "1:2" } } Parameters beyond schema: - `node` must be a Co…

ParameterTypeDescription
node *stringComponent node ID (e.g. "1:2") to instantiate
parentstringParent node ID for placement

set_text

Set text content on one or more nodes. set_text({node: "1:2", text: "Hello World"}) set_text({nodes: [{node: "1:2", text: "Title"}, {node: "1:3", text: "Subtitle"}]}) Use this when changing what text says. For text styling (font, size, weight), use edit.

ParameterTypeDescription
nodestringNode ID
nodesarrayBatch: [{node, text}]
textstringNew text content

set_fill

Set fill or background color on a node. set_fill({node: "1:2", bg: "#F5F5F5"}) set_fill({node: "1:2", fill: "#333333"}) set_fill({node: "1:2", bg: "linear-gradient(135deg, #8B5CF6 0%, #F97316 100%)"}) // Batch — bulk paint update in one call: set_fill({nodes: [{node: "1:2", bg: "#FFF"}, {node: "1:3", bg: "#F5F5F5"}]}) fill = text color or shape fill. bg = frame background. For stroke color, use set_stroke. Accepted color formats (for fill or bg): hex "#FFF", "#F5F5F5" gradient string CSS-like subset, not full CSS: "linear-gradient(<a…

ParameterTypeDescription
bgstringBackground — hex, gradient string, "transparent", or qualified bare-name token
fillstringText color or shape fill — hex, gradient string, or qualified bare-name token
nodestringNode ID (single mode)
nodesarrayBatch: [{node, fill?, bg?}]

set_stroke

Set stroke (border) on a node. set_stroke({node: "1:2", stroke: "1 #E0E0E0"}) set_stroke({node: "1:2", stroke: "2 #333 inside"}) set_stroke({node: "1:2", color: "#E0E0E0", weight: 1, align: "inside"}) set_stroke({node: "1:2", color: "linear-gradient(90deg, #8B5CF6 0%, #F97316 100%)", weight: 1.5, align: "inside"}) // Batch — bulk stroke update in one call: set_stroke({nodes: [{node: "1:2", color: "#E0E0E0", weight: 1}, {node: "1:3", color: "#333", weight: 2}]}) Shorthand: "weight color align" (e.g. "1 #E0E0E0 inside"). Hex only in shorthand. Accepted color formats (for the ex…

ParameterTypeDescription
alignstringStroke alignment relative to the frame edge
colorstringStroke color — hex, gradient string, or qualified bare-name token
nodestringNode ID (single mode)
nodesarrayBatch: [{node, color?, weight?, align?, stroke?}]
strokestringShorthand: "1 #E0E0E0 inside" — single-string form. Hex only; for gradient/variable use the explicit color field.
weightnumberStroke weight in px

set_layout

Set auto-layout properties on a container. set_layout({node: "1:2", gap: 16, p: 24}) set_layout({node: "1:2", layout: "row", justify: "space-between"}) set_layout({node: "1:2", layout: "column", gap: 8, p: "16 24", align: "center"}) set_layout({node: "1:2", layout: "grid", cols: 3, rows: 2, gap: 16}) // Batch — bulk update in one call: set_layout({nodes: [{node: "1:2", gap: 16, p: 24}, {node: "1:3", gap: 8, p: 12}]}) Controls spacing, padding, direction, and alignment of a container's children. Grid: use layout:"grid" with cols/rows + gap (or rowGap/colGap for asymmetric). Chi…

ParameterTypeDescription
alignstringCross axis (flex only)
colGapnumberGrid column gap (px, grid only)
colsnumberGrid column count (required when layout="grid")
gapnumberSpacing between children (px). On grid sets both row+column gap.
justifystringMain axis (flex only)
layoutstringAuto-layout mode
nodestringNode ID (single mode)
nodesarrayBatch: [{node, layout?, gap?, p?, ...}]
pnumberPadding — number, "v h", or "t r b l"
rowGapnumberGrid row gap (px, grid only)
rowsnumberGrid row count (required when layout="grid")
wrapstringWrap behaviour (flex only)

get_selection

Get the user's currently selected nodes in Figma. Returns node names, types, and IDs of selected elements. Call this when the user's intent involves modifying existing elements: - "change this button", "update the card", "fix the spacing" - References to "this", "the selected", "it" Skip for fresh design requests ("design a login page", "create a dashboard") — a new canvas has no selection to read, so the call returns nothing and burns an iteration. Examples: get_selection()

switch_page

Navigate between pages in the Figma file. ID-driven — names are not addressable (they can collide and change). Two modes: - switch_page({}) → return the page roster only, no switch (use to discover IDs on first call) - switch_page({pageId: "1:23"}) → switch and return the updated state + roster Pages are top-level containers under the file root. Most read/write operations default to figma.currentPage. Call this when you need to operate on nodes that live on a different page than the current one. Returns: - currentPageId, currentPageName — the now-current page (always p…

ParameterTypeDescription
pageIdstringTarget page ID (e.g., "0:1"). Omit to just fetch the page roster without switching.

read_plugin_data

Read plugin data (private or shared) from a Figma node. Use for: i18n metadata, design-system tags, custom plugin annotations, anything stored via setPluginData / setSharedPluginData. If `namespace` is omitted, reads private pluginData (`node.getPluginData(key)`). If `namespace` is provided, reads sharedPluginData (`node.getSharedPluginData(namespace, key)`). Returns `{value: ""}` (empty string) when the key does not exist — Figma's API never throws here. Examples: read_plugin_data({node_id: "1:5", key: "ref"}) read_plugin_data({node_id: "1:5", namespace: "i18n", key: "ref"})

ParameterTypeDescription
key *stringKey to read.
node_id *stringFigma node id (resolve via find_nodes / get_selection first).
namespacestringOptional sharedPluginData namespace. Omit for private pluginData.

write_plugin_data

Write plugin data (private or shared) to a Figma node. If `namespace` is omitted, writes private pluginData (`node.setPluginData(key, value)`). If `namespace` is provided, writes sharedPluginData (`node.setSharedPluginData(namespace, key, value)`). Pass an empty string as `value` to delete a key. Examples: write_plugin_data({node_id: "1:5", key: "ref", value: "home_title"}) write_plugin_data({node_id: "1:5", namespace: "i18n", key: "ref", value: "home.welcome_title"})

ParameterTypeDescription
key *stringKey to write.
node_id *stringFigma node id.
value *stringValue (string). Pass "" to delete.
namespacestringOptional sharedPluginData namespace.

create_vector

Create a vector node from SVG path data or a list of points. Use for chart lines, custom icon paths, freeform curves, or any shape that needs path data. Examples: // Polyline (chart trend line) create_vector({ parent: "1:23", name: "TrendLine", x: 40, y: 20, width: 550, height: 240, points: [[0,144],[90,96],[180,120],[270,64],[360,80],[450,40],[540,72]], stroke: "#6366F1", strokeWeight: 2 }) // Raw SVG path (custom shape) create_vector({ parent: "1:23", name: "Wave", width: 200, height: 60, data: "M 0 30 Q 50 0 100 30 T 200 30", stroke: "linear-gradi…

ParameterTypeDescription
height *numberVector bounds height in px.
width *numberVector bounds width in px.
datastringRaw SVG path string. Mutually exclusive with `points`.
fillstringFill — hex / gradient / variable / "transparent" (default: "transparent").
namestringNode name (default: "Vector").
parentstringParent node ID. Omit to attach to the current page.
pointsarrayPolyline points as [[x,y], ...]. Compiled internally to "M x0 y0 L x1 y1 ...". Mutually exclusive with `data`.
strokestringStroke color — hex, gradient string, or qualified bare-name token.
strokeAlignstringStroke alignment relative to the path (default: center).
strokeWeightnumberStroke weight in px (default: 1).
windingRulestringPath fill winding rule (default: NONZERO).
xnumberX position relative to parent (default: 0).
ynumberY position relative to parent (default: 0).

get_screenshot

Capture a PNG screenshot of a node. Use after style changes to visually verify the result instead of reading properties back. Returns base64 PNG data embedded in the response. Parameters: node: Node ID from jsx/inspect results (e.g. "100:5"). Page root ("/") is not supported. scale: Export scale 0.5–2 (default 1). Higher = larger file. padding: Reserved for future use — currently ignored. Examples: get_screenshot({node: "100:5"}) → PNG at 1x get_screenshot({node: "100:5", scale: 2}) → PNG at 2x (sharper)

ParameterTypeDescription
node *stringNode ID (e.g. "100:5"). Page root "/" is not supported.
paddingnumberReserved for future use.
scalenumberExport scale 0.5–2 (default 1).

ask_user

Ask the user 1-3 questions in a single form. Each question has its own options and can be single- or multi-select. Bundle related decisions in ONE call instead of multiple turns. Use when: - The prompt is ambiguous on multiple dimensions (audience + aesthetic + length) — bundle them into one form - You need a decision before proceeding (delete existing? which section first?) - Multiple valid approaches exist and user preference matters Returns one of: - { answers: [...] } — array indexed to questions order. string for single-select, string[] for multi-select. The string MAY be one of the…

ParameterTypeDescription
questions *array1-3 questions to present in a single form (3 is the soft cap; bundle related decisions but don't pad).

subtask

Delegate a focused sub-task to a typed child agent. Each type has its own tools, iteration budget, and behavioral constraints. Available agent types: - create: Build an independent UI section (header, sidebar, form, card). Default. - audit: Read-only design review — find layout issues, property omissions, report PASS/FAIL. - token: Variable system operations — create collections, bind tokens, set up aliases. Use when the prompt names 3+ distinct regions (e.g. header, sidebar, main) that share no nodes, or when specialized behavior is needed (audit, token ops). For 1-2 tool-call operation…

ParameterTypeDescription
prompt *stringDescription of the sub-task to delegate. Be specific about what to create/modify/audit.
typestringAgent type. Defaults to "create" if omitted.

session_note

Read / write your own session scratchpad. Persists across turns within one design session ("New Design" resets it). Notes are how state carries from this turn into the next — the next session loads them as context. Actions: action: "read" → read({key}) returns the current value (empty string if unset) action: "write" → write({key, value}) replaces or deletes (pass value:"" to delete) action: "list" → list({}) returns [{key, chars}] for all existing notes Slots — FORWARD-LOOKING (what we plan / commit to): - plan — this turn's intent + step outline (write at tur…

ParameterTypeDescription
action *stringread | write | list
keystringNote key. Required for read/write. Recommended slots: plan, decisions, brand, todo.
valuestringMarkdown body for write. Pass "" to delete. Ignored for read/list.