run_command
Execute shell commands in persistent terminal sessions. Reuse existing sessions by ID or create new ones for isolated command execution.
Instructions
Execute a command in a reusable terminal session. Reuses session_id (or default) unless create_session=true.
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": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| command | Yes | ||
| session_id | No | ||
| terminal_name | No | Custom name for the VS Code terminal tab. | |
| create_session | No |