Scrape One Webpage
web_scrapeScrapes one public webpage you already have the URL of and returns its content as Markdown: url, final_url, status, title, markdown, outcome (read, no_content, no_main_content, needs_javascript, image_only or access_gate, with reason), the page's own published_at/updated_at when it declares them, and browser (what the browser did). Meaningful image alternative text is included; the reader does not extract text from image pixels. browser=auto (default) reads the page directly and opens it in an isolated headless browser only when the direct read gets no readable content, a JavaScript-only page or an access challenge, or the site refuses it (HTTP 403, 429 or 503); never reads directly only; always uses the browser only (https pages on port 443). include_html adds the browser's rendered HTML. Credits: 1 for a direct read, 5 when the browser read the page; an access challenge, consent or sign-in page is labelled and costs nothing; a failed read costs nothing. auto and always reserve 5 credits and settle at what was used. It does not search: to find pages for a query use web_search; for one file or feed exactly as served (XML, JSON, CSV, gzip) use url_fetch; for the status of many URLs use url_probe; for SEO tags of a page use html_metadata_extractor; for a whole site use site_seo_crawler. This tool runs synchronously. When retention succeeds, retained.run_id reads the completed answer again for free with scraper_run_get; retained.available false says why it could not be kept. Saved synchronous results can be evicted early when storage is needed. The same idempotency_key never charges twice during its replay window.
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>"
},
"name": "web_scrape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http or https URL of the page | |
| device | No | The device the browser load emulates, which its lab metrics describe: desktop (1365x900, no throttling) or mobile (a phone under Lighthouse's mobile throttling: 4x CPU slowdown, slow 4G; lab.method states it). Same price. mobile needs browser=always. | desktop |
| browser | No | auto: direct read, browser only when needed (1 or 5 credits); never: direct read only (1 credit); always: browser only, https pages (5 credits) | auto |
| verbosity | No | concise: short summary of the answer; full: the whole answer. Only shapes the output. Send idempotency_key to read the other form later without a new charge. | |
| include_html | No | Also return the browser's rendered HTML (only when the browser read the page) | |
| idempotency_key | No | Optional retry key bound to this customer and these arguments. Matching retries replay the first result and do not reserve a second credit; the replay says so in billing (replayed true, credits_charged_this_call 0, original_credits_used). |