ai_executeMenuCommand
Runs any Illustrator menu command by command string on the current selection, including native and third-party plugin actions.
Instructions
Illustrator: run ANY menu command by its command string on the current selection — e.g. "group", "ungroup", "outline" (create outlines), "expandStyle", "Live Pathfinder Add", "Live Pathfinder Subtract", "makeMask", "OffsetPath v22", "Make Envelope", "Expand3", "selectall", "deselectall", "fitin", "Live Blend". Third-party plugin menu items work too.
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": "ai_executeMenuCommand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repeat | No | ||
| command | Yes |