pub(crate) const UI_QUERY_TOOL: &str = r#"{
"name": "UIQuery",
"description": "Find elements in AgentMux's UI matching a CSS selector — returns tag, text, attributes, bounding rect, and focus state for each match. Reaches your OWN pane and shared app chrome (status bar, hamburger menu, window controls); cannot reach a DIFFERENT pane or agent's UI. Use this to locate an element before UIClick-ing it, or to read rendered text/state (e.g. did a button's label change) without taking a screenshot. 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 to match, scoped to your own pane" },
"limit": { "type": "number", "description": "Max number of matches to return (default: all)" }
},
"required": ["selector"]
}
}"#;