flow_generate_music
Generate 30-second music clips or full songs from a text prompt and attach the track to a project as background music for films.
Instructions
Generate music with Lyria: a 30-second clip (about $0.04) or a full song (about $0.08).
Describe genre, mood, tempo and instruments. In a project the track becomes the film's background music (looped and faded out by flow_assemble).
Args: prompt: e.g. 'warm lo-fi piano with soft vinyl crackle, 80 bpm, hopeful'. kind: 'clip' (30 s) or 'song' (a couple of minutes, can include lyrics). instrumental: Ask for no vocals (default true; best for background music). attach: Store it as the active project's music. project_name: Project to use (default: active project, if any).
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": {
"prompt": "<prompt>"
},
"name": "flow_generate_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | clip | |
| attach | No | ||
| prompt | Yes | ||
| instrumental | No | ||
| project_name | No |