terminal_start
Launch a command in a new terminal session, returning its styled screen output and session ID for immediate inspection and subsequent interaction.
Instructions
Run command through shell -l -c in a new terminal and return its styled screen and sessionId. Example: {command:"claude",cols:120,rows:40}. shell defaults to SHELL or /bin/sh; cwd defaults to the server directory. login defaults to true; false skips -l. The shell is not made interactive. Use a shell supporting -l -c, such as bash, zsh, dash, or fish. env overrides inherited variables; null deletes a variable. TERM is fixed to xterm-256color. A strict observation timeout retains the allocated session for inspection.
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>",
"cols": "<cols>",
"rows": "<rows>"
},
"name": "terminal_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| cols | Yes | ||
| rows | Yes | ||
| login | No | ||
| shell | No | ||
| command | Yes | ||
| settleMs | No | ||
| settleTimeoutMs | No |