create_session
Spawn an interactive terminal session (REPL, shell, database client, SSH) and get a session ID for subsequent commands.
Instructions
Spawn an interactive terminal session (REPL, shell, database client, SSH, etc.). Returns a session_id for subsequent commands.
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": "create_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The command to spawn (e.g., 'python3', 'bash', 'psql') | |
| args | No | Arguments to pass to the command | |
| name | No | Human-readable session name | |
| cwd | No | Working directory for the session | |
| env | No | Additional environment variables | |
| cols | No | Terminal width in columns | |
| rows | No | Terminal height in rows |