Skip to main content
Glama
Chandelier

Chandelier

by acidka

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

NameRequiredDescriptionDefault
inNo
fillNo
fontNo
nameNo
sizeNo
textNo
typeNo
layerNo
limitNo
fieldsNo
guidesNo
hiddenNo
lockedNo
offsetNo
strokeNo
withinNo[x, y, w, h] in session coordinates
artboardNo
selectedNo
top_levelNo
count_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and does well: it discloses the return shape {total, by_type, items, more?}, the default field set, the default limit of 50, offset paging via 'more?', and count_only for counts. It does not discuss failure modes or cost of unbounded scans, keeping it from 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and return contract, then a compact enumerated filter list where each entry earns its place. It is dense and formatted as one long block, which slightly hurts scanability, but there is little wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 20-parameter, zero-required query tool with no output schema and no annotations, this covers filters, return shape, defaults, and paging. Minor gaps remain around ordering of results and behavior for invalid filters, but an agent has enough to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 5%, so the description must compensate, and it does for essentially all 20 parameters. It defines glob syntax for name, case-insensitive substring matching for text, min/max array form for size, sublayer inclusion for layer, touching semantics for artboard and within, guide-only filtering, and the enum values for fields. This is meaning the bare schema does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource plus scope: 'Find items in the active document (all depths) in one pass.' An agent immediately knows this is a multi-depth query against the current document, not a mutation or a tree walk. It does not explicitly contrast with siblings like get_items or layers, so it stops short of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains combination semantics ('all filters are optional and combine (AND)'), which is genuine usage guidance for narrowing a query. However, it never says when to prefer this over get_items, layers, or selection, and gives no exclusions or prerequisite context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.