export_audit
Export audit logs as portable JSONL, JSON, or CSV text for archiving, compliance, investigations, or SIEM/analyzer handoff, with optional time filters. Read-only; returns rendered text.
Instructions
[audit] Export the audit log as a portable text artifact suitable for archiving or feeding into another SIEM/analyzer. Use for compliance exports, after-the-fact investigations, or to hand the trail to a non-MCP consumer; prefer audit_log for an in-conversation tail and verify_audit_chain to confirm integrity before exporting. Read-only. Returns the rendered text directly (no JSON wrapper). 'jsonl' is one event per line; 'json' is a single array; 'csv' is a header row plus events. Time filters are applied to the event timestamps before formatting.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Inclusive lower bound on event timestamp, ISO 8601. Example: '2026-04-01T00:00:00Z'. Omit for no lower bound. | |
| until | No | Inclusive upper bound on event timestamp, ISO 8601. Omit for now/no upper bound. | |
| format | No | Output format. 'jsonl' (default) is most stream-friendly; 'json' is a single array; 'csv' is spreadsheet-friendly. | jsonl |