Pre-migration URL safety net
migration_checkCollect old URLs from Search Console, sitemap and Internet Archive, test each against the new host, and classify redirects, chains, 404s and errors before a site migration.
Instructions
Pre-migration check: collect old URLs from Search Console (pages with impressions), the old sitemap and optionally the Internet Archive, test each on the new host, classify OK / REDIRECTED / REDIRECT_TO_HOME / CHAIN / NOT_FOUND / ERROR, sorted by old-site clicks. Search Console only remembers 16 months of URLs that got impressions, so on an old site turn on includeWayback (and raise maxUrls) to recover the rest.
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": {
"siteUrl": "<siteUrl>",
"newHost": "<newHost>"
},
"name": "migration_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | No | 3daysAgo | |
| maxUrls | No | ||
| newHost | Yes | Host of the new site to test against, e.g. 'my-site.pages.dev' or 'new.example.com'. | |
| siteUrl | Yes | Search Console property, e.g. 'sc-domain:example.com'. | |
| includeOk | No | Include OK rows in the response (otherwise only problems and redirects). | |
| startDate | No | 180daysAgo | |
| concurrency | No | ||
| waybackLimit | No | Max archived URLs to request. | |
| oldSitemapUrl | No | Old site's sitemap (index supported). Defaults to none: only Search Console pages are used. | |
| includeWayback | No | Also pull historical URLs of the domain from the Internet Archive CDX API (free, no key). Finds pages Search Console has dropped; these have no click data, so raise maxUrls. | |
| waybackFromYear | No | Only captures from this year on, e.g. 2015, to skip a long-gone version of the site. |