read_logs · Read run output
read-onlyOutput (stdout and stderr together) of a run from byte offset "offset", up to 64 KB per call. Returns data, next (the offset to ask for next), done and exitCode. Poll with offset=next every 2 seconds until done. When the computer is stopped it returns the last 4 KB.
Input schema
{
"type": "object",
"properties": {
"computer": {
"type": "string",
"description": "The computer id from create_computer, like c_ab12cd34ef56.",
"pattern": "^c_[a-z0-9]{12}$"
},
"token": {
"type": "string",
"description": "The computer token from create_computer (ct_...). Not needed when you call with the owner's API key."
},
"run": {
"type": "string",
"description": "Run id from run_command, run_agent or create_computer (clone)."
},
"offset": {
"type": "integer",
"description": "Byte offset (default 0).",
"minimum": 0
}
},
"required": [
"computer",
"run"
],
"additionalProperties": false
}