legal_consent_log_export
Export a site's raw consent decision log as CSV for a chosen date range, returning the full file text for compliance records and audits.
Instructions
Export the raw consent decision log as CSV for a day range (same optional from/to rules as legal_consent_log_stats). Returns { filename, csv }; the csv is the full file text, ready to write out as-is. Requires manage_options. Logging itself stays off until legal_put_consent's log_enabled is set, which should only happen after the Datenschutz document has an 'einwilligungsnachweis' section describing it. Requires cvrt-legal 0.5.0+.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>"
},
"name": "legal_consent_log_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Range end, inclusive. Defaults to today. | |
| from | No | Range start, inclusive. Defaults to 30 days before to. | |
| site | Yes | Site id (see list_sites) |