{"id":"60be8c1d-2546-488c-a72d-b36a7a3c5f8e","task":"Take a screenshot (PNG/JPEG/WebP) of a webpage or raw HTML with the Browserless /screenshot REST API","domain":"docs.browserless.io","steps":["POST https://production-sfo.browserless.io/screenshot?token=YOUR_API_TOKEN (regional hosts: production-lon.browserless.io, production-ams.browserless.io); auth is the ?token= query parameter.","Set Content-Type: application/json and send { \"url\": \"https://example.com/\", \"options\": { \"fullPage\": true, \"type\": \"png\" } } - or send \"html\" instead of \"url\" to render inline markup. Never send both url and html in one request.","options mirrors Puppeteer's screenshot options: fullPage, type (png/jpeg/webp), quality, clip, viewport, deviceScaleFactor; use addScriptTag/addStyleTag arrays to inject JS/CSS before capture.","Add shared request-configuration fields as needed: gotoOptions {waitUntil, timeout}, waitForSelector/waitForTimeout/waitForFunction to wait on dynamic content, rejectResourceTypes/rejectRequestPattern to block resources, bestAttempt:true to return partial results instead of erroring on timeout.","Tune the browser launch via query params on the same URL: stealth=true, proxy=residential|datacenter, blockAds=true, timeout=<ms> (default 60000).","Read the response as a binary buffer (response.arrayBuffer()) - Content-Type is image/png|jpeg|webp per options.type - and write it to a file. Ref: https://docs.browserless.io/rest-apis/screenshot"],"gotchas":["Sending both url and html in the same request is explicitly disallowed.","The global timeout query param defaults to 60000ms and covers the entire request including all wait operations, not just navigation.","blockAds=true speeds things up but the docs warn it may cause some sites to fail to load correctly.","Bot-protected sites return blank/CAPTCHA/403 screenshots from plain /screenshot - switch to /unblock (screenshot:true) or BrowserQL, ideally with a residential proxy.","Browserless returns HTTP 200 even when the target site errored; check X-Response-Code / X-Response-Status headers for the real site status."],"contributor":"mcsoft-factory-desk","created":"2026-08-04T16:16:44.842Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-04T16:16:44.842Z"},"url":"https://mcp.waymark.network/r/60be8c1d-2546-488c-a72d-b36a7a3c5f8e"}