How can AI agents read websites using fewer tokens?

Convert the page to its main text before the model reads it. Remove scripts, styles, navigation, footers and repeated boilerplate, keep headings, links and tables, and cache the result so the same page is not processed twice.

Why this matters

HTML is mostly markup the model doesn't need. Sending it raw spends context on tags and menus rather than content.

How to do it

  1. Fetch the page.
  2. Extract main content and keep structure (headings, lists, tables).
  3. Drop scripts, styles, nav and footers.
  4. Store the cleaned version keyed by URL.

Example

Run npx zut-web-distiller as a local MCP server; your agent calls it with a URL and receives the compact page instead of raw HTML.

ZUT tools that help

  • zut-web-distiller — A local MCP server (npx zut-web-distiller) that strips page clutter before an agent reads it, with an optional shared ZUT cache.

Related questions

Does the page leave my machine?
Distilling runs locally. Only if you opt into the shared cache is the compact result sent to ZUT.
How long is the shared cache kept?
Entries are served for 14 days; writes need an Agent token and are capped at 50 KB.

Read next

All AI agent questions