generate_song
Queues a local vocal song from lyrics and a style prompt, or replays an existing WAV to reuse its settings and seed. Returns a job ID for status checks and WAV retrieval.
Instructions
Queue a local YuE2 song with vocals. Provide original lyrics with section labels and a style description, or replay_from a song WAV in the output folder to reuse its exact settings and seed. duration_seconds sets the cap. The model may end earlier. For caps of 30 seconds or less, suggest a single short chorus and a style prompt requesting the lead vocal on the first beat before submitting. Returns a job_id. Use song_status to check progress and retrieve the WAV. Use cancel_song to stop a waiting or running job.
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": "generate_song"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto = recommends an installed profile using memory estimates and the wait budget; fast = Q4_0; quality = Q8_0. | auto |
| seed | No | Base seed for reproducibility; omit or -1 for random. | |
| style | No | Genre, mood, tempo, instruments and vocal character, e.g. 'Japanese vocals, warm city pop, 100 BPM'. | |
| title | No | Short name used for the file name and metadata. | |
| lyrics | No | Original lyrics in their language, with section tags such as [Verse], [Chorus] and [Bridge]. | |
| replay_from | No | Path of a song WAV in the output folder. Replays its saved lyrics, style, seed, profile and ending; other arguments are ignored. | |
| duration_seconds | No | Maximum song length in seconds. For 30 seconds or less, use a single short chorus and ask for the lead vocal on the first beat in the style prompt. | |
| wait_budget_seconds | No | Auto only: the longest acceptable wait in seconds. Auto skips profiles whose estimate exceeds it. |