broken_link_check
Find broken links two ways. Default (crawl mode): crawl a site starting from a URL (same-origin pages only, bounded by maxPages) and check every linked URL for broken status codes, returning each broken link with the page(s) it was found on. Sitemap mode (viaSitemap: true): parse the site's sitemap.xml (following one level of sitemap-index nesting) and check the status of every URL listed in it instead. Note: some external sites (e.g. social platforms) block automated HEAD/GET requests and may show up as false positives.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Starting URL to crawl — or, in sitemap mode, the sitemap.xml URL or any page URL on the site | |
| maxPages | No | Max same-origin pages to crawl in crawl mode (default 20, capped at 50) | |
| viaSitemap | No | Check the URLs listed in the site's sitemap.xml instead of crawling pages (default false) | |
| checkExternal | No | Crawl mode only: also check links pointing off-site (default true; crawling never follows off-site links) |