renderNodeAsBase64
Renders a Sketch node as a Base64-encoded PNG or SVG image, enabling AI tools to visualize the design's actual appearance.
Instructions
Render a node as Base64 encoded image (SVG format) for AI to visualize the actual appearance
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": {
"nodeId": "<nodeId>"
},
"name": "renderNodeAsBase64"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to render as image | |
| format | No | The output image format | svg |