Batch Operations
Batch mode is the main path for LLM agents. It reduces round trips and keeps design generation inspectable.
[ { "name": "card", "command": "node.create_frame", "params": { "name": "Card", "width": 400, "height": 300 } }, { "name": "title", "command": "text.create", "params": { "parentId": "${{steps.card.result.id}}", "text": "Hello World", "fontSize": 24 } }]Object form is also accepted:
{ "operations": [] }Agent Rules
Section titled “Agent Rules”- Name every layer semantically.
- Use
design.compute_tokensbefore laying out a design. - Use
document.find_free_spacebefore placing new frames. - Use dry-run validation before writes.
- Export and inspect after batch runs.
Common Aliases
Section titled “Common Aliases”Compact command aliases are supported for batch payloads: frame, rect, text, fill, stroke, gradient, shadow, blur, glass, modify, mask, and find.