List the command and process history
list_command_historyRetrieve a sandbox's command and process history—recent commands plus processes that wrote output—to audit activity or debug failures, even while the sandbox is stopped.
Instructions
List the command and process history. Every command run through POST /sandboxes/{sandboxId}/commands in the last 7 days, and every other process that wrote to its stdout/stderr in the last 72 hours (mode process), newest first. Works while the sandbox is stopped.
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>"
},
"name": "list_command_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Only commands whose command line contains this text, in any case. | |
| mode | No | Only these modes, comma-separated: sync, stream, detached, process, or `commands` for the first three. Default: all. | |
| limit | No | ||
| cursor | No | The `nextCursor` of the previous page. | |
| sandboxId | Yes | Public Sandbox id returned by create/list/get sandbox calls. |