Anchor Browser icon

Anchor Browser

Interact with Anchor Browser API for browser automation and control

Tool → Fetch Webpage

AI-generated

Summary

Fetch webpage content as HTML or Markdown via Anchor Browser API

Inputs

  • baseUrl — The base URL for the Anchor Browser API. Defaults to https://api.anchorbrowser.io if omitted.
  • sessionId — The ID of the browser session. Optional; if not provided, a new session will be created.
  • fetchWebpageConfig — Fetch Webpage Configuration object containing runtime options for the fetch operation.

Output shape

If the API returns a string, the result is { content: string, length: number, timestamp: ISO8601 }. If the API returns an object containing a content property, it is returned with an added timestamp. Otherwise, the raw response is passed through unchanged.

The returned object always includes a timestamp of when the fetch completed.

Examples

Example 1: Fetch a public webpage as Markdown

Leave sessionId empty, set format to markdown, provide the target URL.

Example 2: Fetch content from an existing browser session

Provide a valid sessionId, optionally set format, gotoTimeout, or waitTime as needed.

Discussion