Skip to main content
Glama

click_and_wait

Click an element and wait for a specified outcome to confirm the action succeeded, avoiding silent failures like unsubmitted forms.

Instructions

⭐ Click + wait for the side-effect to land. Distinguishes a successful action from a silent failure (e.g. form invalid where click() returns success but submit never happened).

Args:
    ref / selector / text: element to click (passed through to existing
        click tools — text uses click_text fuzzy match)
    expect: what to wait for after the click. One of:
        "navigation"     — URL changes
        "url"            — URL matches expect_url_pattern (regex)
        "text"           — page contains expect_text
        "selector"       — expect_selector becomes visible
        "request"        — outgoing request matches expect_request_pattern
        "network_idle"   — no in-flight requests for 500ms
        "auto"           — try navigation→network_idle→nothing
    expect_*: target for the matching expect mode
    timeout: per-mode max wait

Returns JSON {clicked, observed: {what, evidence}, elapsed_ms}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNo
selectorNo
textNo
expectNoauto
expect_url_patternNo
expect_textNo
expect_selectorNo
expect_request_patternNo
timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RobithYusuf/mcp-stealth-chrome'

If you have feedback or need assistance with the MCP directory API, please join our Discord server