Check expressions
ae_expressions_checkScans After Effects comps or projects for broken or disabled expressions, force-evaluating at in/mid/out times to report expression errors after edits, renames, or imports.
Instructions
Find broken expressions: walks every expression in a comp (or the whole project), forces evaluation at the layer's in/mid/out times and reports expressionError, plus expressions AE has switched off. Setting an expression never fails by itself — run this after writing expressions, renaming comps/layers/effects, or importing. Expressions using sourceRectAtTime/toComp/sampleImage are read but not force-evaluated (doing so from a script can open a blocking modal).
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": "ae_expressions_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Stop after this many expressions (default 2000). | |
| comp | No | Comp name or id; omit to scan every comp. | |
| force | No | Force evaluation before reading errors (default true). | |
| instance | No | After Effects instance to address for this call, when several are running (AfterFX.exe -m): an instance id (its AE_MCP_INSTANCE at launch, or the `name` given to instance.start) or the name of the project file it has open. Omit to use this server's default (AE_MCP_INSTANCE, else the single live instance). ae_context and ae_do instance.list show what is live. |