screenshotty
v1.1.0Capture web pages as screenshots (returned inline) or PDFs via the Screenshotty API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
screenshot_url Screenshot a web page
Capture a screenshot of a web page. Returns the hosted image URL and, for images up to 2 MB, the image itself so you can see the page.
| Parameter | Type | Description |
|---|---|---|
url * | string | Page to capture (http:// or https://) |
adblock | boolean | Block ads |
block_cookie_banner | boolean | Hide cookie consent banners |
device_scale_factor | integer | 1 = standard, 2 = retina, 3 = high-dpi |
format | string | Image format. Default png |
full_page | boolean | Capture the whole scrollable page. Default true |
light_mode | string | Force light or dark color scheme |
selector | string | CSS selector of a single element to capture |
viewport_height | integer | Viewport height in pixels. Default 1080 |
viewport_width | integer | Viewport width in pixels. Default 1920 |
wait_ms | integer | Extra wait before capturing, in ms |
screenshot_html Render HTML to an image
Render an HTML document (inline CSS/JS allowed, public http(s) assets only) to an image — e.g. social cards, charts, email previews. Returns the hosted image URL and the image itself when it is 2 MB or smaller.
| Parameter | Type | Description |
|---|---|---|
html * | string | Complete HTML document or fragment to render |
adblock | boolean | Block ads |
block_cookie_banner | boolean | Hide cookie consent banners |
device_scale_factor | integer | 1 = standard, 2 = retina, 3 = high-dpi |
format | string | Image format. Default png |
full_page | boolean | Capture the whole scrollable page. Default true |
light_mode | string | Force light or dark color scheme |
selector | string | CSS selector of a single element to capture |
transparent_background | boolean | Transparent background (PNG/WebP only) |
viewport_height | integer | Viewport height in pixels. Default 1080 |
viewport_width | integer | Viewport width in pixels. Default 1920 |
wait_ms | integer | Extra wait before capturing, in ms |
generate_pdf Convert a web page or HTML to PDF
Render a web page (url) or an HTML document (html) to a PDF. Returns the hosted PDF URL.
| Parameter | Type | Description |
|---|---|---|
adblock | boolean | Block ads |
block_cookie_banner | boolean | Hide cookie consent banners |
html | string | HTML document to render instead of a URL |
light_mode | string | Force light or dark color scheme |
printed | boolean | Use the print stylesheet. Default true |
url | string | Page to capture (http:// or https://) |
viewport_height | integer | Viewport height in pixels. Default 1080 |
viewport_width | integer | Viewport width in pixels. Default 1920 |
wait_ms | integer | Extra wait before capturing, in ms |