console_read
Drain and consume buffered console output from a session, up to an optional byte limit. Surfaces data even when the reader has errors.
Instructions
Drain up to max_bytes (default all) buffered console bytes.
Consumes the drained bytes and resets the truncated flag. An
unknown session is a tool error; an errored reader still surfaces
any buffered data alongside the failure (registry.read()).
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": "console_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | ||
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||