Render nodes as data URIs
render_nodes_as_data_uriConvert selected Figma nodes into data URIs (PNG, JPG, SVG, PDF) to embed directly in code, enabling automated design-to-code workflows.
Instructions
GET /v1/images/{key} then download renders (Figma/S3 only) as data URIs. Same size/SSRF caps as bundle_image_fills. For design-to-code, not writing back to Figma.
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": {
"file": "<file>",
"ids": "<ids>"
},
"name": "render_nodes_as_data_uri"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Node ids, comma-separated or as an array. URL form 1-2 is normalized to 1:2. | |
| file | Yes | Figma file key or URL (figma.com/design/... or figma.com/file/...) | |
| scale | No | ||
| format | No | Export format. Defaults to png. | png |
| max_bytes | No | ||
| max_assets | No |