eds_audit_snapshot
Run a site audit and record its scores to a private history sheet, then get the overall score plus change since the last snapshot to track site health over time.
Instructions
Run the site audit and RECORD its scores to a history sheet in the site's own Document Authoring content (default /audit-history.json, kept private/unpublished), so health can be tracked over time. Returns the overall score AND the change since the last snapshot (e.g. "89, ▲7 vs 2026-08-09"). One row per day — a same-day re-run updates that day's row. dryRun previews the row; publish:true makes the sheet live. Requires EDS_DA_TOKEN. Pair with eds_audit_trend to see the line. Same audit options as eds_audit_site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | RUM look-back window in days (default 7). | |
| domain | No | Live domain for RUM-based performance and 404 checks (needs EDS_DOMAIN_KEY). | |
| dryRun | No | Preview the row without writing (recommended first pass). | |
| publish | No | Preview + publish the history sheet so it is live (default: kept private in DA). | |
| maxPages | No | Max pages to fetch for per-page checks (default 50). | |
| dimensions | No | Which dimensions to run (default all): seo, accessibility, performance, freshness, links, sitemap. | |
| pathPrefix | No | Only audit pages under this path prefix. Omit for the whole site. | |
| historyPath | No | DA path for the history sheet (default /audit-history.json). |