backburner
v1.0.0Run long shell commands as background tasks: start them, keep working, collect the results later
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
start_task
Start a shell command as a background task and return immediately. Args: command: The shell command to run (e.g. "pytest -q" or "npm run build"). cwd: Working directory for the command. Defaults to the server's cwd. timeout_seconds: If set, the task is killed and marked 'timed_out' when it runs longer than this. Recommended for unattended jobs. Returns the new task's id and initial status. The command keeps running after this call returns — use task_status / task_result to follow it.
| Parameter | Type | Description |
|---|---|---|
command * | string | |
cwd | ||
timeout_seconds |
task_status
Check on a task: working, completed, failed, cancelled, timed_out, or interrupted.
| Parameter | Type | Description |
|---|---|---|
task_id * | string |
task_result
Get a task's captured output (stdout+stderr merged). Args: task_id: The task to inspect. Works for finished AND still-running tasks, so you can peek at live progress. tail_lines: How many trailing lines of output to return.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | |
tail_lines | integer |
cancel_task
Cancel a running task, killing its whole process tree.
| Parameter | Type | Description |
|---|---|---|
task_id * | string |
list_tasks
List recent tasks, newest first.
| Parameter | Type | Description |
|---|---|---|
limit | integer |