Asks the browser to click the first element that matches
selector, for a tool call made by an agent (for example over
MCP). The browser does not click an element inside
[mcp-agent-disabled="true"]: such controls are for people only
(for example a button that overwrites files), and agents should ask the
user to click them. People's own clicks are not affected. Use this function
in tools instead of sending the "shidashi.click" message.
Usage
mcp_click(
selector,
session = shiny::getDefaultReactiveDomain(),
timeout = getOption("shidashi.click_timeout", 10)
)