menu_command
Execute an Illustrator menu command by internal name to access actions lacking dedicated tools; applies refs first, then returns the selection.
Instructions
Escape hatch: run an Illustrator menu command by its internal name (app.executeMenuCommand), e.g. "group", "expandStyle", "Live Pathfinder Add", "OffsetPath v22" (outline stroke), "selectall", "deselectall". refs are selected first. Returns the selection afterwards. WARNING: commands that open a dialog block Illustrator until someone closes it — prefer the dedicated tools.
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": {
"command": "<command>"
},
"name": "menu_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refs | No | ||
| command | Yes |