Update snapshot docs#31298
Conversation
The `/snapshot` endpoint now supports optional formats for response, including Markdown and accessibility tree. Updated documentation to reflect these changes and added usage examples.
Review⏸️ Automatic reviews for this PR are paused. This PR has already received 2 automatic reviews. To run another review, a codeowner can comment
Warnings (2)
CommandsOnly codeowners can run commands. Post a comment with the command to trigger it.
|
| { | ||
| "success": true, | ||
| "result": { | ||
| "screenshot": "AdvancedBase64Screenshot", |
There was a problem hiding this comment.
Why advanced? would just place an example base64 string or just say base64screenshot
There was a problem hiding this comment.
Changed in convention to the previous example of ### Create a snapshot from custom HTML
cloudflare-docs/src/content/docs/browser-run/quick-actions/snapshot.mdx
Lines 146 to 147 in 57a9075
But maybe both should be changed to match the basic example, with Base64EncodedScreenshotString
Summary
Documents the new formats parameter on the Browser Run /snapshot endpoint, which lets users control which representations of a page are returned in a single request.
Changes:
Documentation checklist