deskhand
v1.1.0Claude in your Figma file.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
figma_server_info
Server version, WebSocket port, connection state and connected document info.
figma_get_context
File info, current page, selection. Call once per conversation; tools report NOT_CONNECTED if the plugin is down.
figma_get_selection_history
Recent selection changes, newest first, with timestamps. Default is the designer's own selections; source: 'all' adds those made by bridge commands. Served from a server buffer, so it works after the plugin disconnects.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
source | string |
figma_bridge_diagnostics
Check the bridge end to end: versions, plugin handshake, buffered events, reverse round-trip timing. Call when a tool fails or after an upgrade.
figma_licence_status
Deskhand licence state: trial days left, masked key, last check.
figma_licence_activate
Activate a Deskhand licence key.
| Parameter | Type | Description |
|---|---|---|
key * | string | Licence key from your purchase email |
figma_execute
Run an async function body with figma and bridge helpers. Return plain data, not nodes (EXECUTE_BAD_RETURN). Also EXECUTE_SYNC_API, EXECUTE_SYNTAX, EXECUTE_FAILED. job: true past 30 s; figma_job_status waits.
| Parameter | Type | Description |
|---|---|---|
code * | string | Async function body; return plain data. |
job | boolean | Run as a background job and return { jobId }. One at a time (JOB_BUSY). Cap 10 min. |
label | string | Job label |
lint | boolean | Lint top-level frames the script created; findings come back as _lint (empty = clean). |
screenshot | boolean | string | Render a node in the reply: a node id, or true for the returned { id }. |
timeoutMs | integer | Sync timeout ms (default 30000); a script still running then becomes a job. |
figma_job_status
Waits up to waitMs for a figma_execute job to end, then returns state (running | done | error | cancelled | timeout), progress and the result or error.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | From figma_execute with job: true |
waitMs | integer | Max ms to wait for the end (default 20000; 0 = now). |
figma_job_cancel
Ask a running figma_execute job to stop (sets the flag bridge.cancelled() returns; scripts that never check it run to completion). Poll figma_job_status.
| Parameter | Type | Description |
|---|---|---|
jobId * | string |
figma_list_pages
List pages (ids and names). The active page is in figma_get_context.
figma_get_nodes
Node details by id (geometry, fills, auto-layout, text, variable binds). Default-valued props are omitted unless verbose. Composite instance ids resolve; unknown ids land in notFound. Find ids with figma_search_nodes.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Node ids, e.g. ["1:23"] |
depth | string | minimal (id, name, type, childIds), compact (+ x/y/size, parentId, childIds), full (all props; default). |
verbose | boolean | Include default-valued props and skip caps on long fields |
figma_set_fills
Set fill color. Accepts hex shorthand or fills array.
| Parameter | Type | Description |
|---|---|---|
fills * | Fill color | |
nodeId * | string | Node id |
figma_set_strokes
Set stroke color and/or weight. Per-side weights (strokeTopWeight etc., for border-top-only dividers) work on RECTANGLE and frame-like nodes only. Omit `strokes` to change weights only.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Node id |
strokeBottomWeight | number | |
strokeLeftWeight | number | |
strokeRightWeight | number | |
strokeTopWeight | number | |
strokeWeight | number | Uniform weight (px), applied before per-side weights |
strokes | { color: "#RRGGBB[AA]" } | { r, g, b, a? } (0–1) | Figma fills array |
figma_create_rectangle
Create a rectangle.
| Parameter | Type | Description |
|---|---|---|
fills | Fill color | |
height | number | |
name | string | |
parentId | string | Parent id (default: page) |
width | number | |
x | number | |
y | number |
figma_set_text
Set text content. Auto-loads fonts.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Text node id |
text * | string |
figma_clone_nodes
Duplicate nodes.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | |
offset | object | Offset from the originals |
parentId | string | Parent id for the clones |
figma_delete_nodes
Delete nodes.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array |
figma_move_nodes
Move nodes. Use relative=true for offset.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | |
relative | boolean | x/y are offsets from the current position |
x | number | Absolute X, or offset if relative |
y | number | Absolute Y, or offset if relative |
figma_resize_nodes
Resize nodes to explicit pixels. To fit a child to its parent use figma_set_layout_align STRETCH. Instance sublayers fail with INSTANCE_SUBLAYER_RESTRICTED: resize the master. RESIZE_NO_OP if unchanged; a clamp warns.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | |
height | number | |
width | number |
figma_set_size_limits
Set or clear minWidth, maxWidth, minHeight, maxHeight: a number sets, null clears, omit skips. For auto-layout frames and direct children. Read back (LIMIT_NOT_APPLIED, LIMIT_NOT_CLEARED). A bound field keeps its bind.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | |
maxHeight | ||
maxWidth | ||
minHeight | ||
minWidth |
figma_set_opacity
Set opacity (0-1).
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Node id |
opacity * | number |
figma_set_visible
Show or hide nodes via node.visible; don't bind a BOOLEAN variable or set opacity to 0 for this.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | |
visible * | boolean |
figma_set_clips_content
Set whether frame-like nodes (FRAME, COMPONENT, COMPONENT_SET, INSTANCE, SLOT, SLIDE) clip children to their bounds; others error.
| Parameter | Type | Description |
|---|---|---|
clipsContent * | boolean | |
nodeIds * | array |
figma_set_corner_radius
Set corner radius. Use individual values for asymmetric.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Node id |
bottomLeft | number | |
bottomRight | number | |
radius | number | |
topLeft | number | |
topRight | number |
figma_group_nodes
Group nodes.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | |
name | string |
figma_ungroup_nodes
Ungroup nodes.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array |
figma_create_frame
Create a frame.
| Parameter | Type | Description |
|---|---|---|
fills | Fill color | |
height | number | |
name | string | |
parentId | string | Parent id (default: page) |
width | number | |
x | number | |
y | number |
figma_create_text
Create a text node.
| Parameter | Type | Description |
|---|---|---|
fills | Text color | |
fontFamily | string | |
fontSize | number | |
fontStyle | string | |
name | string | |
parentId | string | Parent id (default: page) |
text | string | |
x | number | |
y | number |
figma_set_selection
Set selection. Empty array clears.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Array of node IDs to select (empty array to clear) |
figma_set_current_page
Switch to a different page in the Figma document.
| Parameter | Type | Description |
|---|---|---|
pageId * | string |
figma_export_node
Export a node as PNG, SVG, JPG or PDF to disk and return { path, format, scale, bytes }. outputPath sets the destination; returnBase64: true inlines raw data instead. To see the render in context use figma_screenshot.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
format | string | |
outputPath | string | Absolute output path (directories created). Default: auto-named file in the OS temp dir. |
returnBase64 | boolean | Return base64 inline instead of a file (rarely useful) |
scale | number | Scale (1 = 100%), clamped to 0.01–4 |
figma_screenshot
Render a node (or the selection) as PNG, inline, with path, size and scale. Scale shrinks to fit maxPixels (default 1,000,000); the inline image stays under 200 KB. Use after layout changes to catch overlap and clipping.
| Parameter | Type | Description |
|---|---|---|
inline | boolean | false: write to disk only and return the path |
maxPixels | integer | Pixel budget (width × height) |
nodeId | string | Default: the first selected node |
scale | number | Export scale (1 = 100%) |
figma_compare_to_reference
Pixel-diff a built frame against a reference node at the reference's scale. Returns mismatchPercent, per-quadrant breakdown, size delta and diff, ref and built PNG paths. One hot quadrant means one misplaced element.
| Parameter | Type | Description |
|---|---|---|
builtNodeId * | string | Built frame |
refNodeId * | string | Reference node |
inlineDiff | boolean | Also return the diff PNG inline |
maxPixels | integer | |
scale | number | |
threshold | number | pixelmatch colour threshold (0 = exact, 1 = anything matches) |
figma_export_batch
Export many nodes at a scale or targetWidth (clamped 0.01 to 4). Files go to outputDir (default ~/.deskhand/exports/), named by namePattern ({name} {id} {scale} {ext} {index}). One row per item; nothing is inlined.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
namePattern | string | |
outputDir | string | Absolute directory (created if missing) |
figma_resolve_icon
Check icon concepts against Lucide; never hand-draw glyphs. Aliases resolve (close to x), then exact names; otherwise you get real-name suggestions, so pick one. Insert with figma_place_icon or bridge.icon.
| Parameter | Type | Description |
|---|---|---|
concepts * | array | Concept names, e.g. ["search", "close"] |
figma_place_icon
Insert a Lucide icon as a vector frame named icon/<concept>. Resolves like figma_resolve_icon. Appended to parentId (or the current page) at x/y, scaled and stroked.
| Parameter | Type | Description |
|---|---|---|
concept * | string | Icon concept, e.g. "search" |
color | string | Hex colour (default black) |
parentId | string | Parent frame id (default: page) |
size | number | Rendered size in px (icons are 24 px squares) |
x | number | |
y | number |
figma_place_chrome
Insert an iOS chrome template (status-bar 393×54, home-indicator 393×34, keyboard 393×291), named chrome/<kind>. With parentId it scales to the parent width, top or bottom unless y is given.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
parentId | string | Screen frame id (default: page) |
theme | string | dark on a dark screen |
y | number | Vertical position inside the parent |
figma_review_screen
Lint frame: pass, findings, fixes, a11y. Errors: invisible text, overflow, zero-size, LOW_CONTRAST, TARGET_TOO_SMALL (<24 px; warn <44). Warnings: TEXT_TOO_SMALL, misalignment, raw fills. CONTRAST_AAA: info (error: AAA).
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The frame to review |
checks | array | Restrict to these codes (default: all). CONTRAST_AA is an alias of LOW_CONTRAST. |
level | string | WCAG level (default AA) |
figma_audit
Audit the page or file for off-token fills and text, default names, small text, contrast and more. Grouped refs. File scope is a job. fix: true repairs five rules behind a page snapshot. AUDIT_FAILED, JOB_BUSY.
| Parameter | Type | Description |
|---|---|---|
fix | boolean | Repair fixable findings behind a page snapshot (Design files only) |
job | boolean | Run as a job (always for file) |
rules | array | Rules to run. Default: all but unused-style; unused-variable only at file scope |
scope | string | page (current) or file (job) |
figma_brand_styles
Read the brand the file defines: paint, text and effect styles, components and sets (keys, variant properties), frame sizes. Samples fills and fonts if unstyled. Cached in ~/.deskhand/brands/ for bridge.instance.
figma_set_image_fill
Fill a node with an image from an absolute path (~/ allowed) or http(s) URL: PNG, JPEG, GIF or WebP, up to 4096 px a side and 20 MB. Replaces fills with one IMAGE fill. For photos and avatars; bridge.image in scripts.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Any node with fills |
source * | string | |
scaleMode | string | FILL (cover, default), FIT (contain), CROP, TILE |
figma_snapshot
Save a restorable copy of a node before a risky edit, cloned onto a "🗄 Bridge Snapshots" page with its location recorded. Keeps the newest 10 per file. Restore with figma_restore_snapshot or bridge.snapshot().
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
label | string | Short note shown in the list, e.g. "before restyle" |
figma_restore_snapshot
Undo to a snapshot: removes the current node and moves the saved clone back to its recorded parent, index and position. New id: restoredId. Snapshot consumed. SNAPSHOT_NOT_FOUND if unknown or the clone was deleted.
| Parameter | Type | Description |
|---|---|---|
snapshotId * | string | From figma_snapshot or figma_list_snapshots |
figma_list_snapshots
List saved snapshots in this file, newest first, with whether each clone still exists. Returns { count, page, snapshots }.
figma_diff_snapshot
Compare a snapshot with the live node: size, position, added, removed and changed children, text edits, and before and after renders at one scale. Page snapshots compare the whole page. Changes nothing.
| Parameter | Type | Description |
|---|---|---|
snapshotId * | string | |
inline | boolean | Return both PNGs inline when small |
nodeId | string | Compare with this node instead of the original |
scale | number |
figma_get_design_rules
One cookbook section as markdown, with a runnable recipe. Sections: helpers, auto-layout, components, variants, text, lint, jobs, reference-match. Whole cookbook: skill://deskhand/COOKBOOK.md. Needs no plugin.
| Parameter | Type | Description |
|---|---|---|
section * | string |
figma_create_ellipse
Create ellipse. Use arcData for arcs/rings.
| Parameter | Type | Description |
|---|---|---|
arcData | object | Arcs and rings |
fills | Fill color | |
height | number | Height in pixels (same as width for circle) |
name | string | |
parentId | string | Parent id (default: page) |
width | number | Width in pixels (diameter for circle) |
x | number | |
y | number |
figma_set_effects
Set effects. Replaces existing.
| Parameter | Type | Description |
|---|---|---|
effects * | array | |
nodeId * | string | Node id |
figma_set_auto_layout
Configure auto-layout on a frame: direction, sizing modes, alignment, padding, spacing, wrap. Size variable binds are captured and re-applied (rebound/warnings). See skill://deskhand/SKILL.md.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
counterAxisAlignItems | string | |
counterAxisSizingMode | string | |
counterAxisSpacing | number | Space between wrapped rows |
itemSpacing | number | |
layoutMode | string | NONE disables; HORIZONTAL = row, VERTICAL = column |
layoutWrap | string | |
paddingBottom | number | |
paddingLeft | number | |
paddingRight | number | |
paddingTop | number | |
primaryAxisAlignItems | string | |
primaryAxisSizingMode | string |
figma_get_local_styles
List all local styles (colors, text, effects, grids). To find specific styles by name use figma_search_styles: fewer tokens.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Per category |
offset | integer | |
type | string | |
verbose | boolean | Full paints array, not compact hex[] |
figma_apply_style
Apply a local style (paint, text, stroke, effect, grid) to a node using Figma's async setters. The applied id is read back: appliedStyleId with verified: true, or STYLE_NOT_APPLIED.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
property * | string | |
styleId * | string |
figma_create_component
Create a component.
| Parameter | Type | Description |
|---|---|---|
description | string | |
fills | Fill color | |
fromNodeId | string | Convert this node to a component |
height | number | |
name | string | |
parentId | string | Parent id (default: page) |
width | number | |
x | number | |
y | number |
figma_create_instance
Create a component instance.
| Parameter | Type | Description |
|---|---|---|
componentId * | string | |
name | string | Default: component name |
parentId | string | Parent id (default: page) |
x | number | |
y | number |
figma_get_local_variables
All local variables and collections: types (COLOR, FLOAT, STRING, BOOLEAN), modes, values. Paged: limit (default 100) and offset; next gives the following page.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of variables to return (collections are always returned in full) |
offset | integer | |
type | string |
figma_search_variables
Search variables by name pattern (e.g. "tailwind/orange/*"). Compact results, far fewer tokens than figma_get_local_variables.
| Parameter | Type | Description |
|---|---|---|
collectionName | string | Collection name (partial ok) |
compact | boolean | Minimal data (id, name, hex/value); false for full metadata |
limit | number | |
nameContains | string | Case-insensitive substring |
namePattern | string | Wildcard pattern, e.g. "tailwind/orange/*" |
offset | integer | |
type | string |
figma_search_nodes
Search nodes by name within a scope (parentId required). Preferred for finding frames, sections or elements; compact results (~50 tokens/node).
| Parameter | Type | Description |
|---|---|---|
parentId * | string | Scope: page/frame/section id |
compact | boolean | Return minimal data (id, name, type, parentId, childCount) |
limit | number | |
maxDepth | number | -1 = unlimited, 1 = immediate children |
nameContains | string | Case-insensitive substring |
namePattern | string | Glob, e.g. "*button*", "Header/*" |
offset | integer | |
types | array | Node types, e.g. FRAME, TEXT, INSTANCE |
figma_search_components
Search local components by name. Returns compact metadata.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | |
includeVariants | boolean | Include variants from component sets |
limit | number | |
nameContains | string | Case-insensitive substring |
namePattern | string | Glob pattern |
offset | integer |
figma_search_styles
Search local styles by name; cheaper than figma_get_local_styles.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | |
limit | number | |
nameContains | string | Case-insensitive substring |
offset | integer | |
type | string |
figma_get_children
Immediate children of a node, cheaper than figma_get_nodes for browsing. Default limit 100, with truncated and next for paging. Compact results include x/y. Composite instance-sublayer parent ids resolve.
| Parameter | Type | Description |
|---|---|---|
parentId * | string | |
compact | boolean | Minimal data (id, name, type, x, y, parentId, childCount); false for full serialization. |
limit | integer | Maximum number of children to return |
offset | integer |
figma_set_variable
Set a variable's value for a mode, or bind it to a node property or local style (styleId + field). Read back (BIND_NOT_APPLIED). Width or height on an instance sublayer: INSTANCE_SUBLAYER_RESTRICTED, bind the master.
| Parameter | Type | Description |
|---|---|---|
variableId * | string | |
field | string | Property or text field (fontSize, lineHeight, letterSpacing, paragraphSpacing, paragraphIndent, fontFamily, fontStyle, fontWeight), or 'paints' for paint styles |
modeId | string | Required when setting a value |
nodeId | string | Node to bind to (a style id here routes to the style path) |
paintIndex | number | Paint index for fills, strokes or a paint style |
styleId | string | Local style id (e.g. "S:abc123") to bind a TEXT or PAINT style, instead of nodeId |
value | number, string, boolean or color object |
figma_create_line
Create a line.
| Parameter | Type | Description |
|---|---|---|
length | number | |
name | string | |
parentId | string | Parent id (default: page) |
rotation | number | Degrees (0 = horizontal) |
strokeCap | string | ARROW_LINES/ARROW_EQUILATERAL for arrows |
strokeWeight | number | |
strokes | Stroke color | |
x | number | |
y | number |
figma_set_constraints
Set resize constraints on a node: how it resizes when its parent frame resizes. Only for nodes inside frames (not auto-layout frames).
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
horizontal | string | MIN = left, MAX = right, STRETCH = both, SCALE = proportional |
vertical | string | MIN = top, MAX = bottom, STRETCH = both, SCALE = proportional |
figma_detach_instance
Detach an instance into a regular frame: keeps overrides, severs the link to the main component.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string |
figma_set_layout_align
Set how a child behaves in an auto-layout frame: alignment (STRETCH), growth (fill container) and absolute positioning.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
layoutAlign | string | Counter-axis alignment: STRETCH to fill width/height |
layoutGrow | number | Primary-axis growth: 0 = fixed size, 1 = fill available space |
layoutPositioning | string | AUTO = follow auto-layout, ABSOLUTE = manually positioned |
figma_rename_node
Rename one or more nodes (a batch shares one name).
| Parameter | Type | Description |
|---|---|---|
name * | string | |
nodeId | string | |
nodeIds | array | Batch |
figma_reorder_node
Set sibling z-order: position is the FINAL index (0 = back, childCount-1 = front) or 'back'/'front'; out of range clamps. REORDER_FAILED on mismatch. Instance children: INSTANCE_SUBLAYER_RESTRICTED, use the master.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
position * |
figma_set_text_style
Set text font properties.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
fontFamily | string | |
fontSize | number | |
fontStyle | string | |
letterSpacing | Letter spacing (PIXELS or PERCENT with value) | |
lineHeight | Line height (AUTO, or PIXELS/PERCENT with value) | |
textAlignHorizontal | string | |
textAlignVertical | string | |
textCase | string | |
textDecoration | string |
figma_create_paint_style
Create a paint style.
| Parameter | Type | Description |
|---|---|---|
fills * | Fill color | |
name * | string | "/" makes folders, e.g. "Brand/Primary" |
description | string |
figma_create_text_style
Create a text style.
| Parameter | Type | Description |
|---|---|---|
name * | string | "/" makes folders |
description | string | |
fontFamily | string | |
fontSize | number | |
fontStyle | string | |
letterSpacing | ||
lineHeight | ||
textCase | string | |
textDecoration | string |
figma_delete_style
Delete a local style (paint, text, effect or grid). Library styles return REMOTE_STYLE. Nodes keep their resolved values but lose the link.
| Parameter | Type | Description |
|---|---|---|
styleId * | string | Style id |
figma_create_variable_collection
Create a variable collection.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
modes | array | Default: ["Mode 1"] |
figma_create_variable
Create a variable in a collection.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | |
name * | string | "/" makes groups, e.g. "colors/primary" |
type * | string | |
aliasOf | string | Variable id to alias instead of a value |
description | string | |
scopes | array | Allowed scopes |
value | Initial value (default mode) |
figma_rename_variable
Rename a variable; "/" makes groups.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
variableId * | string |
figma_delete_variables
Delete variables. Cannot be undone.
| Parameter | Type | Description |
|---|---|---|
variableIds * | array |
figma_delete_variable_collection
Delete a variable collection and all its variables. Cannot be undone.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string |
figma_rename_variable_collection
Rename a variable collection.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | |
name * | string |
figma_rename_mode
Rename a mode in a variable collection.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | |
modeId * | string | |
name * | string |
figma_add_mode
Add a new mode to a variable collection.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | |
name * | string |
figma_delete_mode
Delete a mode from a variable collection. Cannot delete the last mode.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | |
modeId * | string |
figma_set_variable_mode
Pin an explicit variable mode on nodes or pages (e.g. a mobile frame on the Spacing collection's mobile mode), or clear: true to unpin. Echoes explicitVariableModes ({} = nothing pinned).
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | Pins are per collection |
nodeIds * | array | Node or page ids |
clear | boolean | Remove this collection's pin instead of setting one |
modeId | string | Required unless clear is true; must belong to collectionId |
figma_unbind_variable
Remove a variable binding from a node property, verified by readback (UNBIND_FAILED otherwise). For minWidth/maxWidth/minHeight/maxHeight the leftover literal clamp is cleared too (previousLiteral, clearedLiteral).
| Parameter | Type | Description |
|---|---|---|
field * | string | e.g. fills, strokes, opacity, cornerRadius, minWidth, maxWidth |
nodeId * | string | |
paintIndex | number | Paint index for fills/strokes |
figma_create_page
Create a page. Figma Design only: FigJam returns FIGMA_DESIGN_ONLY (create FigJam pages in its UI).
| Parameter | Type | Description |
|---|---|---|
name * | string | |
index | number | Position in the page list (0 = first). Defaults to end. |
figma_rename_page
Rename a page.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
pageId * | string |
figma_delete_page
Delete a page. The last page cannot be deleted.
| Parameter | Type | Description |
|---|---|---|
pageId * | string |
figma_reparent_nodes
Move nodes to a different parent.
| Parameter | Type | Description |
|---|---|---|
newParentId * | string | Frame, group or page |
nodeIds * | array | |
index | number | Position within the new parent (0 = bottom/back). Defaults to top/front. |
figma_move_to_page
Move nodes from their current page to a different page.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | |
targetPageId * | string | |
x | number | |
y | number |
figma_swap_instance
Swap an instance to a different component, keeping position and size.
| Parameter | Type | Description |
|---|---|---|
instanceId * | string | |
newComponentId * | string |
figma_duplicate_page
Clone a page and its contents, inserted after the original. Figma Design only (FIGMA_DESIGN_ONLY in FigJam).
| Parameter | Type | Description |
|---|---|---|
pageId * | string | |
name | string | Default: "<original> copy" |
figma_set_rotation
Rotate nodes by degrees. pivot 'center' (default) keeps the visual centre fixed; 'top-left' is Figma's raw rotation. Auto-layout children (unless ABSOLUTE) get top-left plus a warning. Echoes appliedPivot.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | |
rotation * | number | |
pivot | string |
figma_combine_as_variants
Combine components into a variant set; names must use variant naming (e.g. "Size=Large").
| Parameter | Type | Description |
|---|---|---|
componentIds * | array | Minimum 2 |
figma_create_section
Create a labeled section (works in both Figma Design and FigJam) to group content. Supports dev status (READY_FOR_DEV/COMPLETED).
| Parameter | Type | Description |
|---|---|---|
devStatus | string | Only valid on sections directly under a page or section |
devStatusDescription | string | |
fills | Section background fill | |
height | number | |
name | string | |
parentId | string | Parent id (default: page) |
sectionContentsHidden | boolean | Collapse the section's contents |
width | number | |
x | number | |
y | number |
figma_set_section
Update a section's name, dev status, or content visibility. Pass devStatus: null to clear.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | |
devStatus | ||
devStatusDescription | string | |
name | string | |
sectionContentsHidden | boolean |
figma_get_reactions
Prototype (Figma Design only): get a node's reactions (trigger and action details).
| Parameter | Type | Description |
|---|---|---|
nodeId * | string |
figma_add_reaction
Prototype (Figma Design only): add an interaction to a node; existing reactions are kept.
| Parameter | Type | Description |
|---|---|---|
action * | object | |
nodeId * | string | |
trigger * | object |
figma_remove_reaction
Prototype (Figma Design only): remove a reaction by its zero-based index; find it with figma_get_reactions first.
| Parameter | Type | Description |
|---|---|---|
index * | integer | |
nodeId * | string |
figma_set_flow_starting_point
Prototype (Figma Design only): set a top-level frame as a flow starting point on the page, or clear it. Stored page-level as { nodeId, name } entries.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | FRAME, COMPONENT or COMPONENT_SET |
clear | boolean | |
flowName | string | Default "Flow 1"; renames an existing starting point |