herdr_agent_read
Read recent agent terminal output to detect TASK_COMPLETE, blocked questions, or responses. For warm-up, scan ~400 lines from the 'recent' buffer for PONG.
Instructions
Read recent output from an agent's terminal. Used to check for TASK_COMPLETE, blocked questions, or any agent output. For warm-up: read ~400 lines from 'recent' looking for PONG.
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": {
"target": "<target>",
"source": "<source>"
},
"name": "herdr_agent_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Maximum number of lines to read. | |
| format | No | text or ansi (keeps ANSI codes). | |
| source | Yes | Buffer to read: visible, recent, recent_unwrapped or detection. | |
| target | Yes | Agent target (pane id). | |
| strip_ansi | No | Strip ANSI escape sequences (default true). |