fetch
Read web pages and PDFs as clean Markdown, optionally returning only passages relevant to a query within a token limit; JavaScript-heavy pages are loaded in headless Chrome.
Instructions
Read one or more web pages or PDFs (URLs, or local PDF paths) as clean markdown. With query, returns only the most relevant passages within max_tokens; PDF passages are labelled with their page number. Pages built by JavaScript (job boards, single-page apps) are loaded in headless Chrome automatically, which is slower.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | Pages or PDFs to read (URLs, or absolute paths of local PDF files). Pass several in one call rather than calling once per URL. | |
| query | No | What you are looking for. When set, only the most relevant passages are returned. | |
| keywords | No | Exact terms or synonyms that should match, to sharpen the query. | |
| max_tokens | No | Maximum tokens to return across all pages (default 2000). |