Read a music track
analyze_musicAnalyzes a music track's tempo, beats, bars, drop and ending, saving them to FIT.md and cues.json so you can pick the right hit before fitting music.
Instructions
Reads a music track without changing it: its tempo, beats, bars, drop and ending, written to FIT.md and cues.json. Use it before fit_music to pick the hit. (musicfit 0.1.2, on this machine.)
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": {
"track": "<track>"
},
"name": "analyze_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | The tempo, when the one found is half or double the real one. | |
| meter | No | Beats to a bar (default: found). | |
| track | Yes | The music file, or a video whose sound to read. | |
| out_dir | No | Folder to save into, absolute or relative to /app. Default: musicfit-{stem:track}. | |
| wait_seconds | No | How long to wait for the result before returning a job_id to wait on. 45 is safe for clients that stop a tool call after 60 seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kit | Yes | ||
| tool | Yes | ||
| files | No | ||
| folder | No | Where the kit saved its files. | |
| job_id | Yes | ||
| passed | No | For checks: whether the check passed. | |
| status | Yes | ||
| exit_code | No | ||
| last_line | No | What the kit was doing last. | |
| expires_at | No | When the download links stop working. | |
| next_action | No | ||
| elapsed_seconds | Yes |