Click page element
clickClick a web page element by snapshot ref or documentId. Handles hidden documents when allowHidden is true, avoiding DOCUMENT_HIDDEN failures.
Instructions
Click an element by snapshot ref in the current top document or an exact documentId from list_frames. Fails with DOCUMENT_HIDDEN when the document is hidden unless allowHidden=true.
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": {
"ref": "<ref>"
},
"name": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| after | No | Optional act-then-observe requests, run after the page action in waitFor, snapshot, pageStatus order. | |
| tabId | No | Optional Chrome tab id. Defaults to the claimed session tab, then the active tab. | |
| documentId | No | Exact frame document id returned by list_frames. Omit to target the current top document. | |
| allowHidden | No | When true, click/type on a hidden document. Default fails with DOCUMENT_HIDDEN and names activate_tab as the remedy. | |
| sessionTabId | No | Optional claimed tab session id returned by claim_tab. |