extract_links
Collect hyperlinks from a Chrome page or DOM subtree, optionally deduplicating repeated hrefs to cut nav/footer noise and limiting results.
Instructions
Extract anchors from the page or a subtree. dedupe=true collapses links sharing an href (nav/footer noise); limit caps the count.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "extract_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| tabId | No | Tab id (default: agent's tab) | |
| dedupe | No | ||
| frameId | No | Frame id from frames_list | |
| selector | No | ||
| allFrames | No | Act on the first match in ANY frame (the element may be in an iframe) | |
| sameOriginOnly | No |