Read bounded operation output
operation_outputUse this to retrieve bounded stdout and stderr for a child execution owned by the authenticated grant, also after its execution session was closed or expired. This is read-only, does not consume execution units, and requires the connected device to retain the output. Without stream/offset/length it returns the retained tail. For command_run output longer than the tail, pass stream, offset and length to read the full output page by page (the agent keeps up to 8 MiB per stream in memory for recent commands); continue at nextOffset while hasMore is true.
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": {
"operationId": "<operationId>",
"childExecutionId": "<childExecutionId>"
},
"name": "operation_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | Page size in UTF-8 bytes, at most 65536 (default 32768). A page ends on a whole character and can be shorter. | |
| offset | No | Page start, in UTF-8 bytes of the output (default 0). Continue at the returned nextOffset. | |
| stream | No | Read one page of this stream's full command output instead of the retained tail. Default stdout when offset or length is given. | |
| operationId | Yes | ||
| childExecutionId | Yes |