terminal_read
Fetch the current visible output from a running terminal session, returning a specified number of lines with formatting codes removed.
Instructions
Read the current visible output from a terminal session. Returns the last N lines of output with ANSI codes stripped.
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": {
"name": "<name>"
},
"name": "terminal_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Terminal name to read from | |
| lines | No | Number of lines to capture (default: 50, max: 500) |