selection
Read, set, add, remove, or clear currently chosen objects in the active document; list top-level items by layer or artboard with counts and fields.
Instructions
Read or change the selection in the active document. action: "get" (default) | "set" (refs) | "add" (refs) | "remove" (refs) | "clear" | "all" (top-level items; or only those on layer / artboard). Locked and hidden items are skipped (with a warning). Returns {count, items:[…fields]} (fields as in find_items, default uuid/type/name/box; limit default 50).
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": "selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refs | No | ||
| layer | No | ||
| limit | No | ||
| action | No | ||
| fields | No | ||
| artboard | No |