Read recent logs for a service
render_recent_logsFetch recent log lines for a Render service with automatic workspace resolution. Filter by text or level to quickly locate errors.
Instructions
Fetches recent log lines for a service, resolving the service name and workspace id for you. Prefer this over render_list_logs, which needs an ownerId and a resource array. Filter with text/level to find errors quickly.
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": {
"serviceId": "<serviceId>"
},
"name": "render_recent_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Only return lines containing these substrings. | |
| level | No | Filter by log level, e.g. ["error"] or ["error","warning"]. | |
| limit | No | Maximum log lines to return. | |
| endTime | No | RFC3339 end of the window. Defaults to now. | |
| ownerId | No | Workspace id. Inferred from the service when omitted. | |
| serviceId | Yes | Service id (srv-…) or service name. | |
| startTime | No | RFC3339 start of the window. Defaults to one hour ago. |