get_log
Retrieve a gateway request log by ID, including request, response, usage, cost, and metadata. Supports v2 path format with created_at timestamp.
Instructions
Get one gateway request log by ID, including its request, response, usage, cost, and metadata payload when available. For path_format v2, also provide the log's created_at timestamp.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Set to hooks when retrieving a hook execution log | |
| log_id | Yes | Gateway log ID to retrieve | |
| created_at | No | Log creation timestamp in ISO 8601 format; required for v2 | |
| path_format | No | Log storage path format; defaults to v1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |