click
Clicks elements in a headless browser using snapshot refs or CSS selectors, returning true on success and failing for stale or missing targets.
Instructions
Click an element: a ref from snapshot or the first match of a CSS
selector. Returns true; fails when nothing matches or the ref is stale.
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 |
|---|---|---|---|
| target | Yes | A ref from the last `snapshot`, e.g. `e12`, or a CSS selector, e.g. `#price`, `form input[name=q]`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |