e2b_get_sandbox_logs
Fetch structured sandbox logs with pagination and filtering by log level, search term, and timestamp cursor for targeted debugging.
Instructions
Get structured logs for a sandbox (v2 endpoint), with pagination/filtering.
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": "e2b_get_sandbox_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Minimum log level, e.g. info, warn, error | |
| limit | No | ||
| cursor | No | Starting timestamp in ms | |
| search | No | Case-sensitive substring search | |
| direction | No | ||
| sandboxId | Yes |