Anchor Browser icon

Anchor Browser

Interact with Anchor Browser API for browser automation and control

Tool → Take Screenshot

AI-generated

Summary

The output is a structured JSON object describing the Anchor Browser 'Take Screenshot' operation, grounded in the provided properties and source code.

Inputs

  • baseUrl — The base URL for the Anchor Browser API, defaults to https://api.anchorbrowser.io
  • sessionId — The ID of the browser session (optional - if not provided, a new session will be created)
  • screenshotConfig (required) — Collection of screenshot configuration options

Output shape

result

Returns both JSON metadata and binary PNG data. The JSON includes message, timestamp, mimeType, and fileName. The binary contains the captured screenshot under the key 'screenshot'.

Examples

Example 1: Screenshot a specific URL

Provide the URL in screenshotConfig.url. Optionally adjust width, height, imageQuality, waitTime, scrollAllContent, and captureFullHeight.

Example 2: Screenshot current session

Omit the URL and provide a valid sessionId in sessionId. The API will capture the current page of the existing session.

Discussion