getTerminalOutput
Retrieve recent terminal output by name or index. Get the last lines of a VS Code integrated terminal for debugging or monitoring.
Instructions
Get recent output from a VS Code integrated terminal. Identify by name or index (from listTerminals). Returns last N lines. On headless VPS/SSH, use runInTerminal instead.
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": "getTerminalOutput"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Terminal name to retrieve output from | |
| index | No | Terminal index (0-based) from listTerminals | |
| lines | No | Recent lines to retrieve (default 100, max 5000) |