pagesnap

v0.1.0
io.github.CloudCorpRecords/pagesnap Checked 2 days ago Published 23 days ago

Screenshot any public web page as an image, and check your remaining screenshot quota.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

take_screenshot Take a screenshot

Render a public web page in Chromium and return a screenshot. Use fullPage for the whole scrollable page; very tall pages come back as a link instead of an inline image, and a fullPage WebP capture of a page taller than 16383px is clipped to that height (reported as fullPageClip) — use jpeg or png for pages that tall.

ParameterTypeDescription
url *stringPublic http(s) URL to capture, e.g. 'https://example.com'.
formatstringImage format. webp and jpeg are much smaller than png.
fullPagebooleanCapture the full scrollable page.
heightintegerViewport height in CSS pixels. Values above the service maximum are clamped.
localestringBCP 47 locale, e.g. de-DE.
timezoneIdstringIANA time zone, e.g. Europe/Berlin.
waitForSelectorstringCSS selector that must appear before capturing.
waitUntilstringNavigation event to wait for before capturing.
widthintegerViewport width in CSS pixels. Values above the service maximum are clamped.

get_quota Get remaining quota

How many screenshots are left: the free daily allowance without a key, or the organisation's monthly allowance with one.