Run FigCraft engine commands
run_figcraft_commandsExecutes ordered FigCraft commands on new or opened designs, chains step outputs as parameters, and saves results in chosen formats.
Instructions
Advanced: run any FigCraft commands in order (node., page., component., instance., style., variable., align., layout., text., design., export.*...) plus the engine tools create_node / set_properties / inspect_document / get_node / select / export / screenshot / design_context (step id = the tool name), on a new or an opened design, then save. Parameters can use "$steps[N].field" for a value returned by step N (0-based), e.g. "$steps[0].id".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_figcraft_commands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File name for the outputs, without extension. | figcraft |
| steps | No | ||
| formats | No | Save the result (needs output_dir or output_path). | |
| preview | No | Return a picture of the result. | |
| open_path | No | Absolute file to open first (never saved over; save a copy with formats). | |
| overwrite | No | ||
| output_dir | No | ||
| output_path | No | ||
| stop_on_error | No |