render_screen
Produce ground truth screenshots of Figma node subtrees. Renders nodes with true geometry to PNG for design verification.
Instructions
Screenshot ground truth of a node subtree. Prefer options.outputPath and OPEN the PNG on disk — do not redraw. Default trueGeometry=true uses baked Figma path geometry (fillGeometry/strokeGeometry) then resvg. Export packs via export_asset_pack for agent-safe files.
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": {
"filePath": "<filePath>",
"nodeId": "<nodeId>"
},
"name": "render_screen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | GUID string in format 'sessionID:localID' (e.g., '457:1607') or 'sessionID-localID' | |
| options | No | Rendering options | |
| filePath | Yes | Path to the .fig file |