Diff two sitemaps into an IndexNow list
diff_sitemapsParses two sitemap documents (urlset XML, sitemapindex XML, or a newline-delimited URL list) and reports added, removed and lastmod-changed URLs. Returns only the URLs worth submitting to IndexNow. Pass a key to also get the finished, validated POST body.
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": {
"previous_sitemap": "<previous_sitemap>",
"current_sitemap": "<current_sitemap>"
},
"name": "diff_sitemaps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Optional IndexNow key; supplying it returns a ready-to-send payload. | |
| engine | No | Optional target endpoint name. | |
| keyLocation | No | Optional key file URL. | |
| current_sitemap | Yes | The current sitemap document. | |
| include_removed | No | Include removed URLs in the submission list. Default false. | |
| previous_sitemap | Yes | The earlier sitemap document. |