# Anchor Browser MCP connector

> Connects to the Anchor Browser MCP connector to automate browser navigation, interaction, screenshots, tabs, dialogs, and network capture.

**URL:** https://caywork.com/learn/docs/node/anchorbrowsermcp-node

## Content

The **Anchor Browser Node** integrates securely with the Anchor Browser MCP connector. It enables your AI agent to automate a headless browser session, including navigation, element interaction, tab management, screenshots, PDF saving, dialog handling, console and network capture, and Playwright code generation.

## Parameters

### Required Parameters
* **action** (string): The target Anchor Browser tool action to run. Must be one of the enabled actions:
  * `anchorbrowsermcp_anchor_click`: Click an element on the page.
  * `anchorbrowsermcp_anchor_close`: Close the browser session.
  * `anchorbrowsermcp_anchor_console_messages`: Retrieve browser console messages.
  * `anchorbrowsermcp_anchor_drag`: Perform a drag action on an element.
  * `anchorbrowsermcp_anchor_file_upload`: Upload a file via a file input element.
  * `anchorbrowsermcp_anchor_generate_playwright_code`: Generate Playwright automation code.
  * `anchorbrowsermcp_anchor_get_body_html`: Get the full page body HTML.
  * `anchorbrowsermcp_anchor_handle_dialog`: Handle a browser dialog (alert/confirm/prompt).
  * `anchorbrowsermcp_anchor_hover`: Hover over an element.
  * `anchorbrowsermcp_anchor_navigate`: Navigate to a URL.
  * `anchorbrowsermcp_anchor_navigate_back`: Navigate back in browser history.
  * `anchorbrowsermcp_anchor_navigate_forward`: Navigate forward in browser history.
  * `anchorbrowsermcp_anchor_network_requests`: Retrieve captured network requests.
  * `anchorbrowsermcp_anchor_pdf_save`: Save the current page as a PDF.
  * `anchorbrowsermcp_anchor_press_key`: Press a keyboard key.
  * `anchorbrowsermcp_anchor_resize`: Resize the browser viewport.
  * `anchorbrowsermcp_anchor_select_option`: Select an option in a dropdown.
  * `anchorbrowsermcp_anchor_snapshot`: Capture an accessibility snapshot of the page.
  * `anchorbrowsermcp_anchor_tab_close`: Close a browser tab.
  * `anchorbrowsermcp_anchor_tab_list`: List open browser tabs.
  * `anchorbrowsermcp_anchor_tab_new`: Open a new browser tab.
  * `anchorbrowsermcp_anchor_tab_select`: Switch to a specific tab.
  * `anchorbrowsermcp_anchor_take_screenshot`: Capture a screenshot of the page.
  * `anchorbrowsermcp_anchor_type`: Type text into an input element.
  * `anchorbrowsermcp_anchor_wait_for`: Wait for an element or condition.

### Optional Parameters
* **params** (object): A key-value dictionary containing action-specific inputs (e.g., `{'url': 'https://example.com', 'selector': '#submit'}`).

## Practical Use Cases
1. **Web Data Extraction & Monitoring**: Launch a browser, navigate target pages, capture screenshots or HTML snapshots, and extract structured content while recording network activity.
2. **Automated UI Workflows**: Log into web apps, fill forms, click buttons, handle dialogs, manage tabs, and export PDFs or screenshots as part of agent-driven automation.