xd_render_artboard
Render an XD artboard or single layer to PNG to visually verify a rebuild, including linked components, masks, gradients, images, shadows and text as one full-fidelity export.
Instructions
Render one artboard (or one layer via nodeId) to a PNG so you can SEE the result and verify a rebuild. Renders the full-fidelity export (linked components, masks, gradients, images, shadows, text) as one SVG and screenshots it in a local headless Chrome/Edge. Set XD_MCP_CHROME if the browser isn't found automatically. Nothing is uploaded.
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>",
"artboard": "<artboard>"
},
"name": "xd_render_artboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to a .xd file | |
| scale | No | Pixel scale; automatically reduced so the longest edge stays within maxEdge | |
| nodeId | No | Render only this layer id | |
| maxEdge | No | Longest allowed output edge in pixels | |
| artboard | Yes | Artboard id or name |