Lock or unlock track
set_track_lockLock or unlock a single video or audio track to prevent clips from being edited, moved, or deleted by the user or other tools. Returns the track state read back.
Instructions
Lock or unlock one track. Clips on a locked track cannot be edited, moved or deleted, by the user or by other tools. Returns the track state read back. Use set_all_tracks_lock for every track.
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": {
"track_type": "<track_type>",
"track_index": "<track_index>",
"locked": "<locked>"
},
"name": "set_track_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locked | Yes | true = lock, false = unlock. | |
| track_type | Yes | Track type: "video" or "audio". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | Yes | 0-based track index (0 = V1 or A1). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. |