legal_consent_log_export
Export raw consent decision logs as CSV for a chosen date range, returning a ready-to-write file 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 | First day NOT counted (exclusive, the range is [from, to)). Defaults to tomorrow, so today is included. | |
| from | No | First day counted (inclusive). Defaults to 30 days before to; must be before to. | |
| site | Yes | Site id (see list_sites) |