read
Retrieves stdout or error log streams for a specified agent, with line- and byte-range limits for targeted log inspection.
Instructions
Read an agent log stream selected by stream=stdout|errors. Uses lines_from/lines_to (0-based, end exclusive), max_lines, and max_bytes, or bytes_from/bytes_to. Long lines over 10k chars are truncated with a marker, warning, and byte offsets.
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": {
"agent_id": "<agent_id>"
},
"name": "read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream | No | stdout | |
| agent_id | Yes | ||
| bytes_to | No | ||
| lines_to | No | ||
| max_bytes | No | ||
| max_lines | No | ||
| bytes_from | No | ||
| lines_from | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||