click
Presses one user-approved button, link, or checkbox in a browser tab, such as “Accept” or “I agree,” and lists candidates if no single match.
Instructions
Presses one button, link or checkbox in a tab, such as "Accept" or "I agree". Exactly one visible element must match, otherwise nothing is clicked and the candidates are listed. The approval shows the real text of the element found on the page. Use this only for a step you would otherwise hand back to the user. Nothing happens without the user's approval. If the result has status "needs_confirmation", nothing has been done yet: call the confirm tool with the values from its "confirm" object, unchanged.
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": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Start of the tab address, used when no tabId is given. With neither, the active tab is used. | |
| text | No | Visible text or accessible name of the element. | |
| tabId | No | Chrome tab id of the tab you are working in. | |
| selector | No | CSS selector, when text alone is ambiguous. |