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.
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) |