terminal_create
Create a persistent terminal session to maintain state, environment variables, working directory, and command history across interactive commands and long-running processes.
Instructions
Create a new persistent terminal session that will continue running until explicitly closed. Terminal sessions maintain their state, environment variables, working directory, and command history. Use this to establish a long-running interactive environment for executing commands, running processes, or maintaining context across multiple operations.
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": {
"sessionId": "<sessionId>"
},
"name": "terminal_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | Number of columns for terminal width (default: 80). Adjust based on expected output format. | |
| rows | No | Number of rows for terminal height (default: 24). Adjust based on expected output length. | |
| shell | No | Shell to use (default: process.env.SHELL or /bin/bash). Common options: /bin/bash, /bin/zsh, /bin/sh, cmd.exe (Windows), powershell.exe (Windows) | /bin/bash |
| sessionId | Yes | Unique identifier for the terminal session. Use descriptive names like "main", "build", "test", or "deploy" to organize different terminal contexts. |