Listen to a melody or song
render_audioCreates an MP3 of a melody (before or without saving it) or of a saved song, so you and the person can hear it. Pass either song_id or a melody (box, bpm, notes). Sounds: "synth" (free, the site's default sound) or "music_box" (real music box recordings for the box; PRO accounts only). Saved songs use the sound their author chose unless you pass one. Up to 5 minutes; 20 new audios a day without an account and 60 with one (the same melody again is free).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "render_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | No | With song_id: which version. Otherwise the melody's box. | |
| bpm | No | Melody tempo (required without song_id). | |
| notes | No | Melody notes (required without song_id). | |
| sound | No | ||
| song_id | No | A saved song (public, the person's own, or one you saved without an account with its claim_token). | |
| claim_token | No | ||
| illegal_threshold_ticks | No | Minimum gap between two identical notes, in ticks (default 384 = 2 beats). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| sound | Yes | ||
| audio_url | Yes | ||
| duration_seconds | Yes |