read
Fetch a web page and return clean GitHub-flavored markdown at a strict token budget. DOM-density scoring strips boilerplate (CSS, JS, navbars, tracking) — raw HTML averages 80-95% noise. Requires a valid API key (Bearer token); billing is $0.0005 flat per read — insufficient balance returns HTTP 402. Fetch failures return HTTP 422 and are refunded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the web page to fetch and convert to markdown. | |
| max_tokens | No | Optional token budget — markdown is truncated to this many estimated tokens. Omit for full page. | |
| include_links | No | If true, hyperlinks are kept as markdown links. | |
| preserve_tables | No | If true, HTML tables are preserved as GFM tables. |