open_session
Spawn a persistent subprocess session with PTY support to run interactive tools, returning a session ID for subsequent stateful control.
Instructions
Spawn a stateful subprocess session (PTY by default). Returns a session id.
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>"
},
"name": "open_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| pty | No | Use a PTY (recommended for interactive tools). Defaults true. | |
| args | No | ||
| command | Yes | ||
| max_buffer_bytes | No | Per-session output ring buffer cap. |