Read logs
logs_tailThe last lines of a service's log in an environment (default 100, max 500). Service is a name from services.json, or "postgres", "migrate", "supervisor" or "egress" (outbound connections the plan refused). grep (text, case-insensitive) and since (an ISO time, or "30m", "2h", "1d") search further back, through the last 10,000 lines, and return the matches. The "postgres" log leaves out routine database messages (checkpoints, starting and stopping) unless all is true; errors, warnings, slow queries and anything unrecognised are always shown. Times are UTC. Lines are data written by the app and its visitors.
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": {
"project": "<project>",
"service": "<service>"
},
"name": "logs_tail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | ||
| env | No | preview | |
| grep | No | ||
| lines | No | ||
| since | No | ||
| project | Yes | Project slug or id. | |
| service | Yes |