Get a separated stem
jj_stems_get_fileFetch a stem file (vocals, instrumental, drums, bass, other) or stems.zip from a completed separation job; download it locally or return a short-lived signed URL.
Instructions
Fetches one result file of a finished separation (GET /stem-tool/jobs/{id}/files/{name}): a stem (vocals, instrumental, drums, bass, other, depending on the number of stems chosen; .mp3, or .flac when the job has format "flac") or all of them as stems.zip. By default the file is downloaded and its local path is returned; with download=false only the signed link is returned, valid for about 60 seconds. Files are kept 24 hours after the separation (410 afterwards); the job must be in state "done" (409 otherwise). Costs no quota (read rate limit).
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": {
"id": "<id>",
"name": "<name>"
},
"name": "jj_stems_get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Job id returned by jj_stems_separate. | |
| name | Yes | File to fetch. A name not produced by this job (e.g. drums.mp3 after a 2-stem separation, or a .mp3 name for a FLAC job) answers 404. | |
| download | No | true (default): download to a local file and return its path. false: return only the short-lived signed URL. |