run_job
Run slow commands like renders or Whisper as a tracked job that outlives the chat, returning a job id at once instead of a background Bash job.
Instructions
Run slow work (a render, Demucs, Whisper, matting, any command over about 30 s) in Takes, never as a background Bash job or with sleep. Returns a job id at once. The job outlives the chat and Takes, and shows its progress in the session's Jobs row. cmd runs in zsh in the session folder. The result's note says how to wait.
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": {
"session": "<session>",
"cmd": "<cmd>",
"outputs": "<outputs>",
"label": "<label>"
},
"name": "run_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | Yes | The shell command. Print 'TAKES_PROGRESS 0.4' lines for a progress bar (ffmpeg and N% lines work too). | |
| label | Yes | A few words the user sees, e.g. Render edit v3. | |
| outputs | Yes | New files the job writes, relative to the session (paths from next_path). [] if none. | |
| session | Yes | Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work. |