get_deployment_runtime_logs
Tail runtime logs for a deployment, with optional substring filtering.
Returns runtime logs for a deployment, what the server writes to stdout/stderr while serving traffic. Defaults to the most recent 100 lines. Read-only.
Pass query to filter the fetched tail to lines containing a substring (case-insensitive), useful for finding specific errors without pulling huge tails.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
organizationId | string | Yes | Organization that owns the deployment. From list_organizations. |
deploymentId | string | Yes | The deployment whose logs you want. From list_deployments. |
lines | number | No | How many tail lines to fetch (1–5000, default 100). |
query | string | No | Case-insensitive substring filter, applied to the fetched tail, matches are bounded by lines. |
Returns
The log text (ANSI codes stripped) plus lines; with query, also matchedLines and scannedLines.
Related
get_deployment_build_logs: for build-time output