Get Background Command Logs
sandbox_get_command_logsFetch output from a background command and poll incrementally with a cursor so each call returns only new log content, preventing repeated full-log reads and output-limit overruns.
Instructions
Fetch output from a background command. Returns { content, cursor }. Pass the cursor back on the next call to get only what was written since — polling from cursor 0 every time re-reads the whole log and will eventually blow past the tool output limit.
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": {
"sandbox_id": "<sandbox_id>",
"command_id": "<command_id>"
},
"name": "sandbox_get_command_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Cursor from the previous call. Omit or use 0 to read from the start. | |
| command_id | Yes | command_id returned by sandbox_run_command | |
| sandbox_id | Yes | ID of the target sandbox |