Read a page (anew.page URL → its HTML source)
anew_readPass an anew.page URL, get back the HTML document encoded in it, plus its canonical URL and byte size. (Two in-page tools share this name and take no arguments: the editor's reads the document open in the editor, and a rendered page's reads the page being viewed. This one takes a url and reads that page.) To revise an existing anew page, its URL is its source: read it, edit that HTML, write it again. The new URL is a separate page and the original keeps working. Read returns the author's exact bytes — no anew-injected tags, no proxied image srcs — so it re-encodes byte-for-byte. Never re-author from a rendered page, a scraped DOM, or a screenshot: each loses the author's markup, and none is faster than reading the slug. Decoding is local and exact, so any anew URL reads — the page needs no prior visit and no fetch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | An anew.page URL, or a bare slug. Subdomain, cosmetic-prefix and #hash forms all resolve. | |
| format | No | How the document rides back. "text" (default) is one plain text block. "resource" is one embedded-resource block ({type:"resource"}, mimeType text/html) — the typed MCP form for callers that want the page tagged as HTML rather than loose text. Same bytes both ways. | text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Canonical anew.page URL for this document. | |
| bytes | Yes | Encoded URL length in bytes. | |
| limit | Yes | Unfurl-safe URL threshold (4000); headroom = limit - bytes. Past it the URL still works (hard ceiling 65000), it may just break in some apps. |