Run a menu command
ae_exec_menuRun any After Effects menu command by exact name to trigger actions that have no scripting API, such as Auto-Orient or Purge All Memory.
Instructions
Execute an After Effects menu command by name — useful for things with no scripting API, like 'Auto-Orient', 'Fit to Comp', or 'Purge All Memory'. Names must match the menu exactly.
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": "ae_exec_menu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Menu command name, e.g. 'Fit to Comp Width'. |