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()).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | ||
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||