sendTerminalCommand
Send text or commands to a VS Code terminal. Use getTerminalOutput to verify execution results.
Instructions
Send text/command to VS Code terminal. Fire-and-forget; use getTerminalOutput to check results.
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": {
"text": "<text>"
},
"name": "sendTerminalCommand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Terminal name to send to | |
| text | Yes | Text or command to send to the terminal | |
| index | No | Terminal index (0-based) from listTerminals | |
| isCommand | No | False for short stdin responses to prompts (max 512 chars, no shell metacharacters). | |
| addNewline | No | Append newline to execute as command (default: true) |