browser_snapshot
Capture a page's visible title, URL, and interactive elements, each with a precise selector or click coordinates, enabling reliable next actions without ambiguity.
Instructions
Title, url, and the interactive elements that are actually visible.
Each element carries a selector when one can reach it: pass that string to
browser_click or browser_type VERBATIM. It is built to match exactly one
element, which the obvious selector often does not - measured across 958
elements on real pages, 88% could be addressed but only 48% unambiguously,
and Playwright acts on the first match, so a caller aiming at the third of
five identical links would silently hit the first.
Elements with no selector carry at, the centre coordinates, for
browser_click_at.
Not the accessibility tree: on a real sign-up page a single country
<select> contributes about two hundred <option> nodes, which fill the
character cap before the form the caller was looking for appears at all.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |