Compare two audits
compare_auditsCompare two completed audits of one website and get what changed. Defaults to the website's latest completed audit against the one before it; pass base/head run ids to compare any two. The DEFAULT answer is a short summary (a few hundred tokens): the score movement by category, totals for all eight kinds, and the new, worsened and resolved findings GROUPED by rule check (severity, how many pages, one example page and what it said), most severe first, 20 groups at a time with nextCursor for the rest. For rows pass detail="findings" (or any of kind, rule_id, page, include_*): every finding of the kinds you name, one rule or one page, paged with limit and cursor, with findingsMatching and findingsRemaining. The eight kinds: new, resolved, worsened, improved, unchanged (both audits published it), still_open (still there, but one audit did not list it: the evidence store says it is open although the newer audit did not republish it, or the older audit's capped report sampled it out; sampledOut marks a clipped one, which is never counted as new; a sampled class that fails more often is listed in sampledClassGrowth and still counts as a change), not_crawled (the page was not visited, so the issue is neither fixed nor still broken), or not_checked (the newer audit could not run that rule, a capped crawl's inbound-link rules or a check that did not run, so its issue is neither fixed nor still broken; skipReason says why). unchanged, still_open, not_crawled and not_checked rows come only when you ask for that kind; totals count every kind. resolutionEvidence says what backed the resolved verdicts; when it is "none" nothing is reported as fixed. A website with only one audit returns firstRun with no groups; an audit where nothing moved returns changed: false.
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": {
"website_id": "<website_id>"
},
"name": "compare_audits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Older run id. Default: the completed run before head. | |
| head | No | Newer run id. Default: the website's latest completed run. | |
| kind | No | Rows of these kinds only (implies detail=findings). The only way to get unchanged, still_open, not_crawled or not_checked rows besides the include_* flags. | |
| page | No | Rows on this page URL only (implies detail=findings). | |
| limit | No | Rows per page with detail=findings (default 100, at most 500). The summary always shows at most 20 groups per page; use nextCursor for the rest. Totals are never capped. | |
| cursor | No | nextCursor from the previous answer, to continue the groups or the rows. Pass it with the same filters. | |
| detail | No | summary (default): totals, score movement and finding groups. findings: rows, filtered by kind, rule_id or page. | |
| rule_id | No | Rows of this rule only (implies detail=findings). | |
| website_id | Yes | Website id from list_websites or run_audit. | |
| include_unchanged | No | Include unchanged findings. | |
| include_still_open | No | Include still-open findings (present per the evidence store, not republished). | |
| include_not_checked | No | Include not-checked findings (the newer audit could not run their rule). | |
| include_not_crawled | No | Include not-crawled findings. |