xd_get_artboard
Retrieves the layer tree for one Adobe XD artboard by ID or partial name, returning positions, sizes, fills, strokes, text, and fonts for design-to-code or QA.
Instructions
Get the layer tree of one artboard (positions, sizes, fills, strokes, text, fonts). Match by id or name (partial ok).
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_get_artboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to a .xd file | |
| depth | No | Max nesting depth to expand | |
| artboard | Yes | Artboard id or name |