map
Capture actionable page elements as a snapshot with @eN references, enabling agents to target and interact with browser UI reliably.
Instructions
Snapshot actionable elements and assign @eN refs (uses Playwright aria_snapshot mode='ai').
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": "map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Limit snapshot depth. | |
| lease | No | Optional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env. | |
| indent | No | Preserve YAML indent. | |
| session | No | Optional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'. | |
| max_chars | No | Cap the returned snapshot. |