terminal_read
Capture recent terminal output from a device to inspect prompts, command results, paging state, or errors; use lines to limit returned scrollback.
Instructions
Capture recent terminal output for a device, so the caller can inspect
the current prompt, command output, a password/interactive prompt, paging
state, or unexpected errors. lines limits how much recent scrollback is
returned (default 100); the underlying tmux session retains a much larger
history buffer. The device must still be present in the active topology,
reloaded from disk on every call -- an already-open session does not
stay readable if the active topology changes to no longer include this
device.
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": {
"device": "<device>"
},
"name": "terminal_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| device | Yes |