Skip to main content

BROWSER_FOCUS_INFO_TOOL

Constant BROWSER_FOCUS_INFO_TOOL 

Source
pub(crate) const BROWSER_FOCUS_INFO_TOOL: &str = r#"{
  "name": "BrowserFocusInfo",
  "description": "Report the element currently focused (document.activeElement) in your OWN pane, as the same {tag, text, attrs, rect, selector} shape UIQuery returns — null if nothing is focused. Works for any pane, same scoping as UIClick/UIQuery. 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." } } }
}"#;