click
Activate a page element by targeting its @eN ref, visible text, @text/@label/@role accessor, or CSS selector; errors identify overlays or disabled targets and can auto-dismiss consent banners.
Instructions
Click an element. Target: an @eN ref from map_compact, visible text (Add to cart), @text: / @label: / @role:button[name=Pay], or a CSS selector. If the page covers or disables the target the error says what is in the way.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Act on the Nth match (0-based, document order) when the target matches several elements. | |
| 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. | |
| target | Yes | @eN ref, visible text, @text:/@label:/@role:, or CSS. | |
| 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'. | |
| timeout_ms | No | Timeout in ms. | |
| auto_dismiss_banners | No | On 'intercepted' failure, dismiss cookie/consent banners once and retry. |