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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| pattern | No | ||
| private | No | ||
| max_links | No |