Read recent logs for a service
render_recent_logsFetches recent log lines for any service by service ID or name, with optional text and level filters to quickly identify 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.
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. |