execute_menu_command
Triggers Adobe Illustrator menu commands or recorded Actions, optionally selecting items first, so you can automate menu-driven tasks.
Instructions
Menu & Actions Runner: Trigger any of Adobe Illustrator's 500+ internal menu commands (app.executeMenuCommand) or recorded Actions (app.doScript).
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": "execute_menu_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actionName | No | Optional recorded Action name in Illustrator Actions panel | |
| menuCommand | No | Internal Illustrator menu command string (e.g. 'OffsetPath v22', 'outline', 'Live DropShadow2', 'undo') | |
| actionSetName | No | Action Set folder name containing actionName | |
| selectItemNames | No | Optional item names to select before running the command |