create_log_drain
Create a log drain to ship logs from specified sources (build, edge, lambda, static, external) to your HTTPS endpoint with configurable delivery format (json, ndjson, syslog).
Instructions
Create a configurable log drain that ships logs to your endpoint. Choose the sources (build, edge, lambda, static, external) and delivery format.
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": {
"name": "<name>",
"url": "<url>",
"sources": "<sources>"
},
"name": "create_log_drain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Drain name. | |
| url | Yes | HTTPS endpoint to deliver logs to. | |
| deliveryFormat | No | ||
| sources | Yes | Which log sources to drain. | |
| projectIds | No | Limit to specific projects. | |
| headers | No | Custom headers to send. | |
| secret | No | Signing secret for verifying delivery. | |
| 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). |