fetch_extract
Fetch a URL and extract clean text by removing HTML, scripts, and navigation. Reduces tokens by 98% for AI processing.
Instructions
Fetch a URL and return clean text, stripped of HTML, scripts, styles, and navigation. Benchmark (11 real pages): median 98.1% token reduction (53 820 → 2 001 tokens); saves ~$0.156/call at Sonnet pricing ($3/M tokens) vs loading raw HTML. Break-even at 26 KB pages — virtually all real pages qualify. Deterministic, parallel-safe, zero-setup. Cost: $0.02 USDC on Base. First call free per wallet address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to fetch and extract text from | |
| maxChars | No | Max characters to return (default 8000, max 32000) |