export_audit_trail
Export safety audit logs as JSON or CSV. Filter by date range, tool name, action type, or session ID for targeted audits.
Instructions
Export the safety audit trail as JSON or CSV.
Enterprise feature. Returns the full audit log with optional filters
for date range, tool name, action type, and session ID.
Args:
start_time: Unix timestamp lower bound (0 = no filter).
end_time: Unix timestamp upper bound (0 = no filter).
format: Output format, ``"json"`` or ``"csv"``.
tool_name: Filter by MCP tool name.
action: Filter by action (executed, blocked, etc.).
session_id: Filter by agent session ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | ||
| format | No | json | |
| end_time | No | ||
| tool_name | No | ||
| session_id | No | ||
| start_time | No |