set_selected_layers
Set the timeline layer selection by passing layer names, indices, or stable IDs. Existing selections are cleared first so only the specified layers remain selected.
Instructions
Set the timeline selection. Pass an array of layer indices/names — clears existing selection first.
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": {
"layers": "<layers>"
},
"name": "set_selected_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Comp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp. | |
| layers | Yes | ||
| 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. |