replace_screenshot
Overwrite one existing screenshot in a review with a new capture, in the same position. Destructive: the old image and any pins or annotations on it are removed and cannot be recovered; the title and comment change only if new ones are passed. Works on screenshots only, not notes. Takes the same capture arguments as add_screenshot, plus item, the 1-based number of the screenshot to replace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | The 1-based number of the existing screenshot item to overwrite (as it appears in the review, counting notes). | |
| 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. |