Add audio clip
add_audio_clipAdd an audio clip to a track at a specified step. Supports data URLs for embedded audio or source URLs for remote files, with control over length and gain.
Instructions
Place an audio file on a track. Pass a data URL for bundled audio or a source URL for a remotely hosted file.
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": {
"trackId": "<trackId>",
"name": "<name>",
"startStep": "<startStep>",
"lengthSteps": "<lengthSteps>"
},
"name": "add_audio_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gain | No | ||
| name | Yes | ||
| dataUrl | No | ||
| trackId | Yes | ||
| mimeType | No | audio/wav | |
| sourceUrl | No | ||
| startStep | Yes | ||
| lengthSteps | Yes |