read_terminal
Read cleaned terminal output (ANSI stripped, blank runs collapsed) from a session, choosing recent lines or full scrollback history to inspect command results and debug terminal state.
Instructions
Read terminal text (ANSI stripped, blank runs collapsed). Default: last lines
lines of the screen. scrollback=true reads the whole history (capped).
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": "read_terminal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| session | No | ||
| scrollback | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |