Manage local audit history
audit.historyOpt-in local-only site-audit snapshot history. Save a previous hosted audit_public_site structured result as JSON, list saved IDs, or retrieve an exact version.
Instructions
Opt-in local-only site-audit snapshot history. Save a previous hosted audit_public_site structured result as JSON, list saved IDs, or retrieve an exact version. A single compact local JSON file retains at most 10 versions; saving the 11th removes the oldest. No database, background task, or network request.
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": {
"action": "<action>"
},
"name": "audit.history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | For get: saved version ID returned by list or save. | |
| action | Yes | Save a snapshot, list versions, or retrieve one by ID. | |
| snapshotJson | No | For save: JSON-serialized structuredContent from hosted audit_public_site, max 60 KB. Raw HTML is not stored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| error | No | ||
| items | Yes | ||
| evicted_id | No | ||
| snapshot_json | No |