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.
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 |