Get logs
get_logsRetrieve recent runtime or build logs for apps, managed tools, and cron job runs, with time-window and text filters to diagnose failures.
Instructions
Returns the most recent log lines (oldest first) of an app, managed tool or cron job run. Set build=true for the latest build's logs (build failures). Narrow with since/from/to and grep.
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": {
"name": "<name>"
},
"name": "get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Window end, ISO-8601 or relative (default now). | |
| from | No | Window start, ISO-8601 or relative (e.g. 2h). Use with `to` instead of `since`. | |
| grep | No | Only lines containing this text (e.g. ERROR). Ignored for build logs. | |
| name | Yes | App, tool or cron job run name. | |
| build | No | Return build logs of the latest release instead of runtime logs (apps only). | |
| lines | No | How many recent lines to return (default 100, max 1000). | |
| since | No | Relative window ending now, e.g. "15m", "1h", "24h", "7d" (default 15m). Ignored for build logs. | |
| project | No | Project name or ID. Defaults to NIMBUZ_PROJECT, the `nimbuz use` context, or the only project. | |
| release | No | Build logs of this release ID (see list_releases). Implies build=true. | |
| timeZone | No | IANA time zone for timestamps (default: the server's time zone). | |
| environment | No | Environment name (e.g. production) or ID (env-…). Defaults to NIMBUZ_ENV, the `nimbuz use` context, or the only environment. |