get_runtime_logs
Retrieve runtime logs and errors from Vercel deployments to debug serverless and edge functions that misbehave in production.
Instructions
Get RUNTIME logs/events of a deployment (serverless/edge function output, runtime errors). Use to debug a deployment that built fine but misbehaves in production.
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_runtime_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idOrUrl | Yes | Deployment id (dpl_...) or URL. | |
| direction | No | ||
| 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). |