# Web Fetch Tool

`web_fetch` reads one public web page and returns its text. HTML is converted to Markdown, so headings, links, lists and tables survive; scripts, styles and other non-text markup are dropped.

## When to Use

An agent uses it to read a page it already has the URL for: a link the user pasted, a search result worth reading in full, documentation, release notes. To find pages, search first (`exa_web_search`). To look at an image, use `view_image`.

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | The `http` or `https` URL to read |
| `max_chars` | integer | No | The most characters of text to return (default 20000, clamped to 1000–100000) |

## Returns

| Field | Type | Description |
|-------|------|-------------|
| `url` | string | Where the page was finally read from, after redirects |
| `content_type` | string | The page's MIME type, such as `text/html` |
| `content` | string | The page text; Markdown for HTML |
| `truncated` | boolean | `true` when the page was longer than `max_chars` (or than the 5 MB read limit) |

## Notes

- Only public internet addresses are reachable. `localhost`, private ranges, link-local and the cloud metadata address are refused, and so is a redirect into any of them; every hop is checked before it connects.
- Redirects are followed, up to 10.
- Text types (HTML, plain text, JSON, XML) are read; any other type is refused with a pointer to `view_image`.
- A non-success HTTP status is an error naming the status.
- **Retry**, set on the Web reading tool group, sends the fetch again after a failure that passes: a rate limit, a busy server, a dropped connection. Off by default; see [Retries](/docs/nodes/http_get#retries). A fetch is a `GET`, a read, so it is sent again freely.
- Risk: read.
