capture_webpage_tool
Capture screenshots of any web page with customizable viewport size, full-page option, and selector waiting. Supports localhost URLs.
Instructions
Capture a screenshot of a web page using a headless browser.
Useful for capturing local dev servers (localhost), web apps, or any URL. The browser launches on first use and stays running for subsequent captures.
Parameters:
url: The URL to capture (e.g., "http://localhost:3000", "https://example.com").
viewport_width: Browser viewport width in pixels. Default 1280.
viewport_height: Browser viewport height in pixels. Default 720.
max_size: Maximum pixel dimension for the output. Default 800.
full_page: If true, capture the entire scrollable page. Default false.
wait_for_selector: Optional CSS selector to wait for before capturing (e.g., "#main-content", ".loaded"). Leave empty to skip.
Returns the web page screenshot as an Image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| max_size | No | ||
| full_page | No | ||
| viewport_width | No | ||
| viewport_height | No | ||
| wait_for_selector | No |