Start Shell Session
start_shell_sessionStarts a persistent interactive PTY session for shells, long-running apps, debuggers, or REPLs, returning an ID for writing input and reading output.
Instructions
Start a persistent interactive PTY session and return its id.
With command=None spawns an interactive shell. With a command, runs
shell -c <command> inside the PTY - ideal for long-running apps,
debuggers (gdb), REPLs, or anything needing a TTY. Use
write_to_session / read_session_output to interact.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "start_shell_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| sudo | No | ||
| shell | No | /bin/bash | |
| command | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |