get_build_logs
Retrieve build logs for a deployment to identify build steps and failure reasons. Use it when a deployment is in ERROR state.
Instructions
Get the BUILD logs of a deployment — what ran during the build and why it failed. Use this first when a deployment is in ERROR state.
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": {
"idOrUrl": "<idOrUrl>"
},
"name": "get_build_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idOrUrl | Yes | Deployment id (dpl_...) or URL. | |
| limit | No | Maximum number of items to return. | |
| since | No | Logs after this timestamp (ms). | |
| until | No | Logs before this timestamp (ms). | |
| teamId | No | Team ID to scope the request. Falls back to VERCEL_TEAM_ID when omitted. | |
| slug | No | Team slug to scope the request (alternative to teamId). |