ae_run_extendscript
Executes arbitrary ExtendScript in After Effects inside one undo group, letting you handle custom automation the built-in tools do not cover; disabled unless enabled.
Instructions
VÁLVULA DE ESCAPE: executa ExtendScript arbitrário dentro de um undo group. Desligada por padrão (AE_MCP_ENABLE_RUN_EXTENDSCRIPT=1 para habilitar). Prefira as ferramentas ae_*. Nunca use alert() nem diálogos: eles travam o AE.
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": {
"code": "<code>"
},
"name": "ae_run_extendscript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Corpo de função ExtendScript (ES3); o valor do return é devolvido em JSON. |