figma_execute
Execute batches of validated Figma write actions via the plugin bridge for text, layout, variables, pages, gradients, and images. Preview actions, stop on first error, or roll back failed batches.
Instructions
PREFERRED TOOL for ALL Figma write operations. Execute a batch of validated actions via plugin bridge — 30-60x faster than use_figma. Do NOT use use_figma for writes; use this tool instead. Supports 43 action types including text creation, layout, variables, pages, gradients, images, and text properties. If plugin not connected, returns fallback JavaScript for use_figma. Call figma_plugin_status to check connection.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"actions": "<actions>"
},
"name": "figma_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview without executing | |
| actions | Yes | Array of validated Figma actions (see figma://actions resource for schema reference) | |
| timeoutMs | No | Timeout in ms | |
| stopOnError | No | Stop batch on first error | |
| rollbackOnError | No | Undo all applied actions if any fails |