visit
Open and render JavaScript-heavy pages like single-page apps, charts, or login-walled sites with a real Chromium browser to extract text and screenshots.
Instructions
Open a URL with a real Chromium and return its rendered state.
Use when the cheaper fetch tools (web_fetch, pdf_fetch, http_post_form)
fail because the page is a SPA, JS-rendered chart, login-walled, or has
a dropdown that's not a separate URL.
Args:
url: The page URL.
wait_for_selector: Optional CSS selector to await before reading the
DOM. Use when data appears only after an AJAX call returns —
e.g. ".chart svg", "table#monthly tbody tr".
wait_extra_ms: Extra settle time after the wait fires (default 1500).
timeout_ms: Hard navigation timeout (default 45s).
screenshot: Whether to capture a PNG INTERNALLY (default True). Adds
~200ms; the bytes are used by extract()/act() for Sonnet vision.
full_page_screenshot: Scroll-stitch the whole page (default False).
text_cap: Cap on extracted text length (default 30000).
return_screenshot_b64: Whether to ECHO the base64 PNG back in the
response. DEFAULT False — typical screenshots are 700KB-1MB and
accumulating them across an agent's tool-call history blows the
1M-token context window in ~3 calls. Only opt in when the caller
actually consumes the bytes (e.g. a browser-canvas UI).
Returns:
{url, title, domain, text, screenshot_bytes, screenshot_b64 (opt-in),
fetched_at, current_date}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| wait_for_selector | No | ||
| wait_extra_ms | No | ||
| timeout_ms | No | ||
| screenshot | No | ||
| full_page_screenshot | No | ||
| text_cap | No | ||
| return_screenshot_b64 | No |