get_accessibility_tree
Get the page accessibility tree with roles, names, and selectors. Supports filtering by role and pagination. Browser-only.
How to use it
get_accessibility_tree is exposed by the MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_accessibility_tree tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP
claude mcp add wdio-mcp -- npx -y @wdio/mcp@latestOther tools in MCP (30)
Attach to an existing remote WebDriver/Appium session by ID without creating a new session
Click an element
Close or detach from the current session (supports detach: true to disconnect without terminating)
Delete all cookies or a specific cookie
Drag from one location to another
Emulate a mobile/tablet device preset (viewport, DPR, UA, touch); requires BiDi session
Execute arbitrary JavaScript in the browser, or Appium mobile commands on devices
Get the current lifecycle state of a mobile app (not installed / not running / background / foreground)
List available automation contexts (NATIVEAPP, WEBVIEW) and the currently active one
Get all cookies for the current session, or a single cookie by name
Get visible, interactable elements on the page. Supports inViewportOnly (default: true) to filter viewport elements, and includeContainers (default: false) to include layout containers on mobile
Take a screenshot of the current page or screen (base64-encoded, auto-resized to max 2000px / 1MB)
List all open browser tabs with handle, title, URL, and active status. Browser-only.
Hide on-screen keyboard
Launch a new Chrome instance with remote debugging enabled (for use with startsession({ attach: true }))
List apps previously uploaded to the provider's app storage
Navigate to a URL
Install a web extension through WebDriver BiDi and open one of its extension pages so normal page tools can drive its UI
Rotate to portrait or landscape
Scroll in a direction (up/down) by specified pixels. Browser-only.
Set a cookie with name, value, and optional attributes
Set device GPS location
Type text into input fields
Start a new browser or app session; attach: true retains the existing Chrome CDP connection mode
Swipe in a direction (up/down/left/right)
Switch between native and webview contexts
Switch into an iframe by CSS/XPath selector, or back to the top-level frame if no selector is given. Browser-only.
Switch to a different browser tab by handle or 0-based index. Browser-only.
Tap an element by selector or coordinates
Upload a local .apk or .ipa to the provider; returns an app URL/reference