compose_music
Compose music from a text description, control duration and format. Returns the saved audio file path.
Instructions
Compose music from a text prompt (ElevenLabs Music).
Args: prompt: description of the music, e.g. "upbeat lofi hip hop, mellow piano". music_length_ms: desired length in milliseconds (e.g. 30000 for 30s). model_id: music model id (API default when omitted). output_format: audio output format. output_filename: optional output file name.
Returns the absolute path of the saved audio 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": {
"prompt": "<prompt>"
},
"name": "compose_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| model_id | No | ||
| output_format | No | mp3_44100_128 | |
| music_length_ms | No | ||
| output_filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |