get_deployment_build_logs
Tail build logs for a deployment, or stream an in-flight build by offset.
Returns build logs for a deployment, the output of the build pipeline. Defaults to the last 100 lines. Read-only.
There are two modes:
- Tail (default, or with
lines), return the last N lines. - Offset streaming (with
offset, nolines), stream forward from a character offset. Use a previous response'snextOffsetto resume following an in-flight build.
lines takes precedence if both are set.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
organizationId | string | Yes | Organization that owns the deployment. From list_organizations. |
deploymentId | string | Yes | The deployment whose build logs you want. From list_deployments. |
lines | number | No | Return only the last N lines (1–5000, default 100). |
offset | number | No | Character offset to stream forward from. Ignored if lines is set. |
Returns
The log text plus the build status when available. Tail mode includes returnedLines and totalLength; offset mode includes pagination info with nextOffset.
Typical use
Debugging a failed deployment: find it with list_deployments (status: "failed"), then read its build logs here.