extract_links
Pure HTML parser. Given a single page's HTML and its baseUrl, returns every resolved to absolute, separated into internal vs external by host, with cleaned anchor text, rel attribute, and nofollow flag. Skips fragments, mailto:, tel:, javascript:, and empty hrefs. Designed to feed compute_link_graph: the agent crawls pages on the user's machine (their IP, no Cloudflare subrequest cap) and calls extract_links per page, then ships the structured page data into compute_link_graph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Raw HTML of the page | |
| baseUrl | Yes | Absolute URL of the page (used to resolve relative links and identify internal vs external) |