Set gain
audio.set_gainVolume of an audio clip (or a video clip's linked audio) in dB; keyframes ride it up and down. The preview is a waveform of the clip; with preview inline it also carries the measured loudness (preview.loudness), a link preview does not. Returns the new timeline_id (edit that one next), what changed, and where each changed clip now sits.
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": {
"clip_id": "<clip_id>",
"gain_db": "<gain_db>",
"timeline_id": "<timeline_id>"
},
"name": "audio.set_gain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_id | Yes | An audio clip, or a video clip whose linked audio to change | |
| gain_db | Yes | dB, -60 to 24; 0 leaves it as it is. Keyframes make a ride: the first key holds backward to the clip start, so a ride that begins part-way down must also key its starting level at frame 0 or the frames before it are changed too. A key past the clip end is stored as given, with no clamp and no warning. Two keys on one frame are refused | |
| preview | No | inline: image in the result; link: URI that renders on read; none | link |
| timeline_id | Yes | Timeline handle; every edit returns a new one |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | Yes | The version this edit started from | |
| changed | Yes | What the edit added, removed or modified; a clip or transition says its track and where it now sits (frames, end exclusive) | |
| clip_id | No | The clip this edit made or acted on (each tool says which) | |
| preview | Yes | ||
| clip_ids | No | Every clip this edit made or acted on, linked ones included (each tool says which) | |
| track_id | No | ||
| warnings | Yes | ||
| timeline_id | Yes | The new version: edit this one next (older ids stay valid) |