Click element
clickTriggers a real browser mouse press and release on an element found by CSS selector, interaction-tree ID, or visible text.
Instructions
Click one element, located by selector, numeric id, or visible text.
Pass exactly one of selector or text. The click is a real mouse event (move, press, release at the element's centre, scrolled into view), so the page sees exactly what a user's click produces. Numeric ids come from get_interaction_tree and are the most reliable route on complex pages; an id stays valid while its element exists and expires on navigation. Fails with element_obscured, naming what is on top, when another element covers the target; pass force=true to click anyway. Returns the target, its tag, and its numeric id when matched by text.
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 |
|---|---|---|---|
| tab | No | Tab id from list_tabs or new_tab to act on, instead of the active tab. The active tab does not change. Omit to use the active tab. Example: 'tab_2' | |
| text | No | Visible text of the element to click, matched as a best match across light and shadow DOM. Used only when selector is omitted. Example: 'Add to cart' | |
| force | No | Click at the element's position even when something else covers it (an overlay, a banner). Off by default, so a covered element is reported instead of clicking the wrong thing. Example: false | |
| selector | No | CSS selector, or a numeric id from get_interaction_tree passed as a string. Example: '#submit' or '42' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Interaction-tree id of the element acted on; reusable while it exists. | |
| tag | No | Tag name of the element acted on. | |
| target | Yes | The selector, id or text the call acted on. | |
| summary | Yes | One line saying what happened. |