Anchor Browser icon

Anchor Browser

Interact with Anchor Browser API for browser automation and control

OS Level Control → Take Screenshot

AI-generated

Summary

Capture a screenshot of the current state of a specified browser session running in Anchor Browser's OS Level Control resource. Requires the ID of an active browser session to take the screenshot from.

Inputs

  • Session ID (required) — The ID of the browser session from which to take the screenshot.
  • Base URL — The base URL for the Anchor Browser API, defaults to https://api.anchorbrowser.io.

Output shape

a single item containing JSON metadata about the screenshot and binary data of the PNG image file.

Returns JSON with message, timestamp, mimeType, and filename, plus a binary property holding the screenshot image as 'screenshot'. The operation requires a valid Session ID and produces a PNG image snapshot representing the current visual content of that session.

Examples

Example 1: Take a screenshot of an active browser session.

Set the resource to 'OS Level Control', operation to 'Take Screenshot', provide the active session ID under 'Session ID', and optionally specify a custom API base URL if needed.

Discussion