find_items
Search the active Illustrator document at every depth using optional AND filters for type, name, text, font, size, color, layer, artboard, bounds, and status; return matches, counts, and paged fields.
Instructions
Find items in the active document (all depths) in one pass. All filters are optional and combine (AND): type (one or an array), name (glob: * and ?), text (substring of text contents, case-insensitive), font (substring of the PostScript or "Family Style" name), size (font size, or [min,max]), fill / stroke (colour), layer (name, includes sublayers), in (ref of a layer or group), artboard (index: touching it), within ([x,y,w,h]: touching it), top_level (direct children of layers only), hidden / locked / selected (booleans), guides (true = only guides, false = no guides). Returns {total, by_type, items:[…fields], more?}. fields default ["uuid","type","name","box"]; also: layer, parent, text, font, size, fill, stroke, sw, opacity, hidden, locked, selected, artboard. limit default 50, offset for paging, count_only for just the counts.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| in | No | ||
| fill | No | ||
| font | No | ||
| name | No | ||
| size | No | ||
| text | No | ||
| type | No | ||
| layer | No | ||
| limit | No | ||
| fields | No | ||
| guides | No | ||
| hidden | No | ||
| locked | No | ||
| offset | No | ||
| stroke | No | ||
| within | No | [x, y, w, h] in session coordinates | |
| artboard | No | ||
| selected | No | ||
| top_level | No | ||
| count_only | No |