export_audit_trail
Export the safety audit trail as JSON or CSV with optional filters for date range, tool name, action type, and session ID.
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"``,
``"rate_limited"``, ``"auth_denied"``,
``"preflight_failed"`` or ``"dry_run"``. Empty for all.
session_id: Filter by agent session ID.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_audit_trail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Filter by action: ``"executed"``, ``"blocked"``, ``"rate_limited"``, ``"auth_denied"``, ``"preflight_failed"`` or ``"dry_run"``. Empty for all. Default: "". | |
| format | No | Output format, ``"json"`` or ``"csv"``. Default: "json". | |
| end_time | No | Unix timestamp upper bound (0 = no filter). Default: 0. | |
| tool_name | No | Filter by MCP tool name. Default: "". | |
| session_id | No | Filter by agent session ID. Default: "". | |
| start_time | No | Unix timestamp lower bound (0 = no filter). Default: 0. |