Get detached command status and logs
get_command_statusRetrieve detached command status and logs for a sandbox process, with byte offsets that return only new stdout/stderr since the last poll.
Instructions
Get detached command status and logs. Without offsets, the answer holds the end of each log. With stdoutOffset or stderrOffset, it holds only the output written since those byte offsets, so each poll returns only new output. A sandbox agent too old for offsets answers 409 agent_outdated.
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": {
"sandboxId": "<sandboxId>",
"processId": "<processId>"
},
"name": "get_command_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| processId | Yes | Process id returned by a detached command start. | |
| sandboxId | Yes | Public Sandbox id returned by create/list/get sandbox calls. | |
| tailBytes | No | Cap each returned log to its last N bytes. Defaults to 8388608 (8 MiB). Ignored with offsets. | |
| stderrOffset | No | Return only stderr written from this byte offset. Use `stderrNextOffset` of the previous answer. | |
| stdoutOffset | No | Return only stdout written from this byte offset. Use `stdoutNextOffset` of the previous answer. |