terminal_start
Start an interactive shell session and return its ID plus initial screen, enabling AI agents to launch PowerShell, pwsh, CMD, bash or sh and drive persistent consoles.
Instructions
Start an interactive terminal session and return its id plus the initial screen.
Args: shell: "powershell" (Windows PowerShell 5.1), "pwsh" (PowerShell 7), "cmd", "bash" or "sh", or an absolute path to any executable. Defaults to powershell on Windows and bash elsewhere. cwd: Working directory. Defaults to the server's current directory (or MCP_TERMINAL_ROOT when that guardrail is configured). env: Extra environment variables merged into the inherited environment. cols: Terminal width in columns (default 120). rows: Terminal height in rows (default 30). name: Session id. Auto-generated (t1, t2, ...) when omitted. replace: Kill an existing session with the same name and start a fresh one. args: Extra arguments passed to the shell or executable.
Returns: session_id, shell, cwd, pid, size, prompt, ready reason and the rendered screen.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "terminal_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| args | No | ||
| cols | No | ||
| name | No | ||
| rows | No | ||
| shell | No | ||
| replace | No |