Canonical: https://weaveos.com/reference/vercel/read-deployment-build-logs

1. [Software capabilities](https://weaveos.com/reference)
2. /[Vercel](https://weaveos.com/reference/vercel)
3. /Read Vercel deployment build logs

Vercel capability

# Read Vercel deployment build logs

Use deployment events for a programmatic build log. In a terminal, vercel inspect --logs prints build output for a deployment. A connected agent can use the Vercel MCP tool.

Documentation reviewed November 26, 2026

## Ways to do it

API

### GET /v3/deployments/{idOrUrl}/events

Read build events by deployment ID or hostname. Use follow for live events or request a bounded result.

- Requirements

  An authorized Vercel API token and the deployment identifier. Supply team scope when needed.

- Limitations

  Following events can keep the response open. Set a time range or result limit for a bounded fetch.

[Read source: Vercel REST API deployment events ↗](https://vercel.com/docs/rest-api/deployments/get-deployment-events)

CLI

### vercel inspect \<deployment> --logs

Print the deployment’s build output in a terminal.

- Requirements

  Vercel CLI authenticated with access to the deployment and the deployment URL or ID.

- Limitations

  The --logs output replaces the default deployment metadata view.

Example

```
vercel inspect "$DEPLOYMENT_URL" --logs
```

[Read source: Vercel CLI inspect logs ↗](https://vercel.com/docs/cli/inspect#logs)

MCP

### get\_deployment\_build\_logs

Fetch a deployment’s build log in an agent tool call. Filter by log level or time window as needed.

- Requirements

  An authenticated Vercel MCP client, a deployment identifier, and the owning team’s ID or slug.

- Limitations

  The tool limits the number of lines returned. Set a window and limit that fit the error you’re investigating.

[Read source: Vercel MCP get\_deployment\_build\_logs ↗](https://vercel.com/docs/agent-resources/vercel-mcp/tools/deployments/get_deployment_build_logs)

## More from Vercel

[View all Vercel capabilities →](https://weaveos.com/reference/vercel)

- [Inspect a Vercel deployment↗](https://weaveos.com/reference/vercel/inspect-deployment)
- [Query Vercel runtime logs↗](https://weaveos.com/reference/vercel/query-runtime-logs)
