Fetch web page
web_fetchFetches a public web page with a plain GET and returns its HTML as is (cut at maxChars), or - when selectors are given - only the values plucked from it with CSS selectors. Use selectors for large pages: e.g. {"post": "article"} for text, or {"text": {"selector": "meta[property="og:description"]", "attr": "content"}} for a meta tag. A non-2xx response is returned with its status and body so you can see why a site refused. For a tweet or X post, oembed is smaller and more reliable. This does not read video or audio - use media_transcribe for those.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"context": "<context>"
},
"name": "web_fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | HTTP or HTTPS URL of a public page. Addresses on private networks (localhost, 10.x, 192.168.x, cloud metadata) cannot be fetched. | |
| clean | No | Drop script, style, noscript and svg elements from the returned HTML | |
| context | Yes | Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization." | |
| maxChars | No | Longest HTML body to return (default 100000, max 500000). Ignored when selectors are given. | |
| selectors | No | Result name to CSS selector. A plain string returns the text of all matches; use {selector, attr | html, all} for an attribute (e.g. a meta tag's content), outer HTML, or every match. When given, the page itself is not returned - prefer this on large pages. | |
| workspace_id | No | Which workspace to act in - a workspace id (whoami returns the id of your default workspace). Omit to use your default workspace. |