Open a terminal session
terminal_spawnOpens a persistent local shell session that preserves its working directory and environment between commands, returning a session id for follow-up terminal operations.
Instructions
Open a new persistent local shell session. The session keeps its working directory and environment between commands. Returns the session id used by the other terminal tools.
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_spawn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the session. Defaults to the directory where the server started. | |
| env | No | Extra environment variables merged into the inherited environment. | |
| name | No | Friendly name for the session. Must be unique enough to use instead of the id. | |
| shell | No | Shell executable to start, for example /bin/zsh, /bin/bash or cmd.exe. Defaults to $SHELL. |