Start a background task
task_startStart detached background shell commands and return a task ID, PID, and log path so long-running jobs persist across restarts. Use companion tools to read incremental output or stop the task.
Instructions
Start a detached background shell command and return immediately with a task id, PID and log path. The task keeps running if termux-mcp restarts, and its exit code is persisted in a status file. Use task_output to read incremental output and task_stop to terminate it. Background tasks are non-interactive; use terminal_create for prompts and TUI programs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory. Default $HOME. | |
| env | No | Extra environment variables. | |
| name | No | Optional human-readable label. | |
| command | Yes | Shell command to run in the background. | |
| wait_ms | No | Wait this long before returning, so initial output/failures are visible. Default 0. |