page_links
Extract page links as text and href pairs in document order. Filter with case-insensitive regex on link text or href to identify navigation targets cheaply, without full markdown parsing.
Instructions
List a page's links as [{text, href}, ...] in document order.
Cheaper to reason over than full markdown when deciding where to
navigate next. pattern (case-insensitive regex) filters on link
text OR href — e.g. pattern="item?id=" for HN comment pages.
Shares the capture with fetch_page on the same URL (60s cache), so
calling both costs one page render.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "page_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| pattern | No | ||
| private | No | ||
| max_links | No |