Skip to main content

UI_CLICK_TOOL

Constant UI_CLICK_TOOL 

Source
pub(crate) const UI_CLICK_TOOL: &str = r#"{
  "name": "UIClick",
  "description": "Click an element in AgentMux's UI — a real synthesized mouse click (not a scripted .click()), so focus/hover/pointer behavior matches a human click. Reaches your OWN pane and shared app chrome (status bar, hamburger menu, window controls); cannot reach a DIFFERENT pane or agent's UI. Use UIQuery first if you're not sure of the right CSS selector. Pass pane (from OpenBrowser) to act on a browser pane you opened; without it this acts on your own pane.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "pane": { "type": "string", "description": "Optional: the pane id OpenBrowser returned, to act on a browser pane you opened instead of your own pane. Only panes you opened are accepted." },
      "selector": { "type": "string", "description": "CSS selector for the element to click, scoped to your own pane" }
    },
    "required": ["selector"]
  }
}"#;