Generate music
generate_musicCompose instrumental music with Sonilo and place it on a "Music" track: a pending audio item is filled with the finished track. sections change the mood at seconds into the track, not timeline time: the first starts at 0, each at least 5 s after the one before, the last at least 5 s before the end. auto builds them from the timeline instead: quiet where people speak (cached transcripts), energy elsewhere, an accent where a title appears. dryRun returns the duration and sections it would send, free, without generating. Costs credits.
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": {
"project": "<project>",
"prompt": "<prompt>"
},
"name": "generate_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auto | No | Build the sections from speech and titles; not with `sections` | |
| name | No | Item name; default: the prompt, shortened | |
| start | No | Timeline seconds; default 0 | |
| track | No | Track name or id; default: a "Music" track, created if missing | |
| dryRun | No | Return what would be sent, and generate nothing | |
| prompt | Yes | The overall style | |
| project | Yes | Project id or exact name | |
| sections | No | Mood changes, seconds into the track | |
| durationSeconds | No | Whole seconds; default: from `start` to the end of what is on screen (of the timeline, when only sound) |