terminal_spawn
Starts a CLI process in a tmux virtual terminal with a real PTY and returns a session ID, enabling interactive CLI automation and output capture.
Instructions
Start a CLI process in a virtual terminal (tmux session). Returns a session_id for subsequent interactions. The process runs in a real PTY with proper ANSI rendering.
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": "terminal_spawn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables to set (optional) | |
| args | No | Command arguments (optional) | |
| cols | No | Terminal width in columns (default: 120) | |
| rows | No | Terminal height in rows (default: 40) | |
| command | Yes | The command to run (e.g., 'bash', 'python3', 'pincer run -- claude') |