Skip to content
Software capabilities

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

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

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

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