session_create
Spawn a persistent terminal session for interactive shells, SSH, REPLs, or database CLIs. Returns a session ID to control the session with other tools.
Instructions
Spawn a persistent PTY terminal session. Returns a session_id used by all other session_* tools. Supports interactive shells, SSH, REPLs, and database CLIs. Snapshot mode is always available.
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": "session_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | Terminal width in columns | |
| rows | No | Terminal height in rows | |
| label | No | Human-readable label for the session | |
| command | Yes | Shell command to run (e.g. 'bash', 'python3', 'ssh user@host') | |
| idle_timeout | No | Seconds before auto-closing idle session | |
| enable_snapshot | No | Deprecated: snapshot is now always enabled. Kept for backward compatibility. | |
| scrollback_lines | No | Number of scrollback history lines to keep |