read
Retrieve accumulated output from a running REPL or subprocess session, with configurable draining, ANSI code stripping, and timeout-based waiting.
Instructions
Read accumulated output from a session.
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_id": "<session_id>"
},
"name": "read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drain | No | Drain buffer (default true). | |
| max_bytes | No | ||
| session_id | Yes | ||
| strip_ansi | No | Strip ANSI escape codes from output. | |
| timeout_ms | No | If buffer is empty, wait up to this time for output. |