start_task
Start a shell command as a background task and receive its ID immediately, enabling long-running jobs to continue after the call returns.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| command | Yes | ||
| timeout_seconds | No |