terminal_screen
Capture the rendered terminal screen with cursor position, showing exactly what a human sees, including prompts and TUI. Optionally prepend scrollback history lines for context.
Instructions
Return the rendered terminal screen (VT emulation) with cursor position.
This is the clean view: cursor moves, erases and color codes are applied, so it shows exactly what a human would see, including the current prompt or TUI.
Args: session_id: Session returned by terminal_start. max_chars: Maximum characters returned (head+tail with an omission marker). history: Number of scrollback lines to prepend to the visible screen (0 = viewport only).
Returns: text, cursor {x,y}, cols, rows, running, exit_code, history_lines, history_available.
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": {
"session_id": "<session_id>"
},
"name": "terminal_screen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| history | No | ||
| max_chars | No | ||
| session_id | Yes |