page_links
Fetch a URL and get a JSON list of all links classified as internal, external, or other, with anchor text. Ideal for crawling a site for migration or building a sitemap.
Instructions
Fetch a URL and return a JSON list of all its links, classified as internal (same host), external (different host) or other (mailto:, tel:, etc.), resolved to absolute URLs, deduplicated, each with its anchor text. Returns an error if the URL is unreachable. Has no side effects. Free. Ideal for systematically crawling a site for migration or for building a sitemap. Do NOT use to list page assets (images, scripts) — use page_assets instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to fetch (http:// or https://). | |
| maxLinks | No | Max links to return (default 2000, max 2000). |