Set clip volume
set_clip_volumeSet an audio clip's Volume level to a fixed dB value, replacing keyframes only when clear_keyframes is true, and return the dB level read back.
Instructions
Set an audio clip's Volume > Level to a fixed dB value (the same knob as Effect Controls > Volume > Level; not clip gain). If the level is keyframed the call fails with UNSUPPORTED unless clear_keyframes=true, which removes the keyframes first. Returns the level read back in dB. Levels are in dB as shown in Premiere's Effect Controls (0 dB = unchanged, maximum +15 dB). A level of -100 dB or lower means silence (-infinity). Use set_clips_volume for many clips, adjust_clip_volume for a relative change. The clip must be on an audio track; a video clip is rejected with BAD_ARGS (pass its linked audio clip instead; the error names it).
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": {
"level_db": "<level_db>"
},
"name": "set_clip_volume"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| level_db | Yes | New level, in dB. -100 or lower = silence. | |
| clip_index | No | 0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id. | |
| track_type | No | Used with track_index + clip_index when clip_id is not given. Default "audio" in this toolset; "video" is rejected. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | 0-based track index (0 = V1 or A1). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| clear_keyframes | No | Remove existing volume keyframes first. Default false. |