ai_getState
Retrieves Illustrator document state, including active document size, color mode, artboards, layers, selection, and item counts by type, for inspection and automation.
Instructions
Illustrator: open documents and the active one — size, color mode, artboards (rects), layers (visible/locked/item counts), selection, item counts by type.
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": "ai_getState"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | No | Document name; omit for the active document. | |
| listItems | No |