MCP Tools Reference
The BAP MCP server exposes 23 tools organized into six categories. With--slim mode, only 5 essential tools are exposed.
Navigation
navigate
navigate
go_back
go_back
Navigate back in browser history.No parameters.
go_forward
go_forward
Navigate forward in browser history.No parameters.
reload
reload
Reload the current page.No parameters.
Element Interaction
click
click
Click an element using semantic selectors.
Element selector (see Selector Formats below).
fill
fill
type
type
press
press
select
select
scroll
scroll
hover
hover
Hover over an element.
Element selector.
Observation
observe
observe
AI-optimized page observation. Returns interactive elements with stable refs. Supports incremental diffs and response tiers.
Maximum elements to return.
Filter by ARIA roles (e.g.,
["button", "link", "textbox"]).Include an annotated screenshot with element refs.
Return only changes since the last observation:
{ added, updated, removed }.Response tier:
full, interactive, minimal.Include tools discovered via the WebMCP standard.
screenshot
screenshot
Take a screenshot of the current page.
Capture the entire scrollable page.
aria_snapshot
aria_snapshot
Token-efficient YAML accessibility snapshot. Approximately 80% fewer tokens than
accessibility.No parameters.accessibility
accessibility
Full accessibility tree.No parameters.
content
content
Get page text content.
Output format:
text or markdown.element
element
Query element properties: exists, visible, enabled, checked, value.
Element selector.
AI Agent Methods
act
act
Execute a sequence of browser actions in a single call. Supports fused pre/post observation.
Array of action steps. Each step has
action, selector, and optionally value.Observe page state before executing steps.
Observe page state after executing steps. Contains
maxElements, responseTier.Page Management
pages
pages
List all open pages/tabs.No parameters.
activate_page
activate_page
Switch to a different page/tab.
Page ID from the
pages result.close_page
close_page
Close the current page/tab.No parameters.
Discovery
discover_tools
discover_tools
Discover tools that websites expose via the W3C WebMCP standard. Checks for declarative (form-based) and imperative (navigator.modelContext) tool definitions.No parameters.
Selector Formats
All tools that accept aselector parameter support these formats:
Resources
The MCP server also exposes 4 resources:| Resource | Description |
|---|---|
bap://page/state | Current page URL and title |
bap://page/accessibility | Full accessibility tree |
bap://page/aria-snapshot | YAML accessibility snapshot |
bap://page/screenshot | Current page screenshot |