list_logs
Browse request and Function execution logs for a project — 'was it my engine or my Function code' debugging, with rich filtering.
log_type='requests' returns one row per API request (status, latency split into engine vs. Function time, redacted payload). log_type='function_logs' returns one row per Function invocation within a request's chain (status, duration, its own error text in full, and its captured print() output). The two share a requestId — use get_request_trace to fetch both sides of one request in a single call.
Filters: tenant_id, entity, http_method, and (function_logs only) function_id are exact-match and fast. At least one of those, an exact request_id, or a bounded created_after/created_before time range is required — an unfiltered, unbounded query is rejected, since requests rows never expire.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| entity | No | Entity or custom endpoint name the request targeted. | |
| status | No | function_logs only: ok/error/halted/skipped/timeout. | |
| log_type | Yes | Which log entity to list. | |
| tenant_id | No | ||
| project_id | No | Optional if whoami returned a default_project_id. | |
| request_id | No | Exact requestId lookup — see also get_request_trace. | |
| function_id | No | function_logs only. | |
| http_method | No | ||
| created_after | No | ISO 8601 datetime, inclusive lower bound. | |
| created_before | No | ISO 8601 datetime, inclusive upper bound. |