add_screenshot
Append one screenshot, with an optional title and note, to the end of a review. The image is stored in Cobalt and shown in the review. Three ways to supply it: page_url, a public page that Cobalt renders in a headless browser (viewport 'desktop' at 1280px or 'mobile' at 390px, full_page for the whole scroll, hide_selectors for elements to hide; common cookie banners are hidden automatically), which also returns the rendered image; image_url, an image already uploaded to https://cobaltcapture.com/api/upload; or image, a small base64 image. This tool only appends; it never changes an existing item (replace_screenshot does that).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | A small base64-encoded PNG, JPEG or WebP (data: URL prefix accepted). Intended for images under about 100 KB; larger screenshots are better uploaded and passed as image_url. | |
| title | No | Optional short caption for the screenshot. | |
| review | Yes | The review slug or URL from create_review. | |
| comment | No | Optional note describing what this screen shows or what's wrong with it. | |
| page_url | No | A public http(s) page for Cobalt to render and screenshot server-side. Pages behind a login can't be rendered. Becomes the item's source_url unless one is passed. Takes 10 to 30 seconds; a site that blocks automated browsers returns an error. | |
| viewport | No | With page_url: 'desktop' (1280x800, default) or 'mobile' (390x844 phone, 2x, touch). | |
| full_page | No | With page_url: capture the entire scrollable page instead of the first viewport. Default false. Pages that scroll inside an inner container come back viewport-sized. | |
| image_url | No | An image URL on Cobalt's own image host, as returned by https://cobaltcapture.com/api/upload (multipart field `file`, returns {url, key}) or by the editor's window.cobaltGrab(). External URLs are refused. | |
| source_url | No | Optional URL of the page the screenshot was taken on. | |
| claim_token | Yes | The claim_token from create_review (authorizes the write). For a review the human has SAVED to their account, pass the agent token they generated on the review page (Export & more → Hand to your agent) here instead. | |
| hide_selectors | No | With page_url: extra CSS selectors to hide before the shot, e.g. ['#newsletter-modal', '.chat-widget']. Common cookie and consent banners are hidden on every render. |