Get runtime logs
get_runtime_logsRecent runtime (stdout/stderr) log lines for a project, newest first. Defaults to the canonical commit; optionally filter by level. log_drops is present when lines were not kept because the app logged faster than its limit, so a gap in the logs is then expected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dev | No | when true, return the draft's logs (hot-reload server output); default false returns regular runtime logs | |
| level | No | optional level filter, e.g. info / warn / error / debug | |
| limit | No | max log lines to return, newest first (default 100, max 1000) | |
| commit | No | optional commit hash, full or abbreviated (the 7-char form list_deployments returns is accepted); defaults to the canonical (production) commit | |
| job_id | No | alias of commit for callers that hold a deployment job id (from list_deployments or deploy_files); commit wins if both are given | |
| project_id | Yes | the project id (from list_projects) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | Yes | ||
| note | No | ||
| commit | No | ||
| log_drops | No | present only when lines were dropped in the last 24 hours because the app logged faster than its log limit; a gap in the logs is then expected | |
| project_id | Yes |