Content is loading…
Pull every hyperlink from raw HTML or a URL with same-domain filter.
extract_html_links#link extraction#crawler#sitemap#hyperlinks#web parsingExtracts all hyperlinks from a provided url or raw html string. Returns a list of objects containing absolute hrefs and visible link text. Filter results to the source host using sameDomainOnly or restrict the count via the limit parameter.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | optional | URL to fetch and parse. Either url or html is required. |
html | string | optional | Raw HTML to parse. Either url or html is required. |
sameDomainOnly | boolean | optional | Only return links whose host matches the source URL host. Ignored when html is supplied. Default false. |
limit | number | optional | Cap on number of links returned. Default 500. |
{
"url": "https://docs.example.com",
"sameDomainOnly": true,
"limit": 100
}curl -X POST https://toolsy.my/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "extract_html_links",
"arguments": {
"url": "https://docs.example.com",
"sameDomainOnly": true,
"limit": 100
}
}
}'Generate a free API key or set up an OAuth connector for Claude.ai.