spawn_shell
Launch long-running processes like watchers and servers, then poll output, send input, or kill via returned proc_id.
Instructions
Spawn a long-running process. Returns a proc_id for follow-up calls.
Use this for watchers (watchexec, tail -f), servers, REPLs, or any
command you want to poll output from over time. For one-shot
commands use run_shell instead — it's simpler and auto-logs.
Returns proc_id which is passed to tail_shell_output, send_to_shell,
kill_shell, and wait_shell.
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": {
"command": "<command>",
"repl_id": "<repl_id>"
},
"name": "spawn_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| command | Yes | ||
| repl_id | Yes | ||
| env_extra | No | ||
| use_shell | No |