set_active_comp
Opens a specified composition in the After Effects viewer and sets it as the active comp; accepts a name or stable ID to target the right comp.
Instructions
Open a comp in the viewer (sets the active comp).
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": {
"comp": "<comp>"
},
"name": "set_active_comp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | Yes | Comp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp. | |
| instance | No | Target a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances. |