generate_music
Turn text prompts into original music tracks. Specify duration, model, and variations to get audio suited to your project.
Instructions
Generate music from text descriptions
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": "generate_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Seed for reproducible generation | |
| model | No | Music generation model to use | |
| prompt | Yes | Text description of the music to generate | |
| duration | No | Duration in seconds for the music | |
| num_outputs | No | Number of variations to generate | |
| display_mode | No | How to return the audio: display (show audio), save (return base64 for saving), both (show audio and provide base64) | display |
| save_location | No | Directory path to save the music. Overrides default save location. | |
| negative_prompt | No | What to avoid in the generation |