Skip to main content

BROWSER_SELECT_TOOL

Constant BROWSER_SELECT_TOOL 

Source
pub(crate) const BROWSER_SELECT_TOOL: &str = r#"{
  "name": "BrowserSelect",
  "description": "Choose an option of a dropdown (<select>) by its ref from the latest BrowserSnapshot and the option's visible label or value. For a custom dropdown, BrowserClick it open, take a snapshot, then BrowserClick the option.",
  "inputSchema": { "type": "object", "properties": { "pane": { "type": "string", "description": "The pane id OpenBrowser returned (omit to act on your own pane, if it is a browser pane)" }, "ref": { "type": "string", "description": "An element reference from the latest BrowserSnapshot, e.g. \"e12\"" }, "option": { "type": "string", "description": "The option's label (or value)" } }, "required": ["ref", "option"] }
}"#;