click_element
Clicks a page element in a live session and reports whether the URL, DOM, or network actually changed, with fallback strategies for overlays and payment pages that ignore synthetic clicks.
Instructions
Click an element in a session page. Returns the new URL/title plus an HONEST change report: changed (bool), change (url/dom/network), click_method (pointer | pointer_force | js_dispatch), attempts. If nothing changed the result carries a hint. If a portal overlay (Radix/shadcn) or an unstable element blocks the pointer, the default strategy falls back to a synthetic JS click (flagged click_method='js_dispatch') — hosted payment pages ignore synthetic clicks (isTrusted), so use force=true (trusted pointer click at coordinates) or strategy='auto' (pointer → force → js_dispatch, stopping at the first attempt that changes the page; never re-clicks after a change).
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": {
"session_id": "<session_id>",
"selector": "<selector>"
},
"name": "click_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Trusted pointer click at the element's coordinates, skipping actionability checks (default: false). Use for controls that ignore synthetic clicks (Stripe/hosted checkouts) or animating elements. | |
| observe | No | What to return about the resulting page. 'screenshot' (default): full-page image. 'none': structured result only, no image — cheapest, use through setup steps of a flow. 'map': semantic page map (get_page_map — token-light, best for 'what can I do next?'). 'checks': run_checks_on_session output (a11y/seo/perf/etc.). | screenshot |
| selector | Yes | CSS selector of element to click | |
| strategy | No | single (default): one attempt, honest change report. auto: escalate pointer → pointer_force → js_dispatch until the page changes. | |
| session_id | Yes | Session ID |