click
Simulate a user click on the active Chrome tab using a DOM node ID, viewport coordinates, CSS selector, or visible text to interact with page elements.
Instructions
Click on the active tab. Prefer node_id (from snapshot) or x+y (viewport coordinates); selector/text use Playwright and may be less reliable when Codex shares the page.
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 |
|---|---|---|---|
| x | No | Viewport X coordinate. | |
| y | No | Viewport Y coordinate. | |
| text | No | Visible text to match. | |
| tab_id | No | Optional tab id. | |
| node_id | No | DOM node id from a visible-dom snapshot. | |
| selector | No | CSS selector. |