agent_read
Reads recent output from a tmux or Claude background session to inspect agent progress; set wait_idle to block until output stabilizes.
Instructions
Read the recent output of a session. For a tmux session this is the screen with TUI chrome stripped; for a Claude background session it is that session's log. Pass wait_idle: true to block until the agent stops producing output first.
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": "<session>"
},
"name": "agent_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | How many recent lines (default 120) | |
| session | Yes | Session id or name | |
| wait_idle | No | Wait for output to stop changing before reading | |
| idle_timeout_ms | No | Max wait when wait_idle is set (default 600000) |