xd_find_layers
Search layers in an Adobe XD file by text content, layer name, type, or color to quickly locate specific design elements across artboards or the entire document.
Instructions
Search layers across the file by text content, layer name, type (text, rectangle, ellipse, path, group, ...) or color (#rrggbb, matched with a small tolerance).
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>"
},
"name": "xd_find_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to a .xd file | |
| name | No | ||
| text | No | ||
| type | No | ||
| color | No | #rrggbb | |
| limit | No | ||
| artboard | No | Artboard id or name; omit for the whole file |