pub(crate) const BROWSER_WAIT_FOR_TOOL: &str = r#"{
"name": "BrowserWaitFor",
"description": "Wait until a page shows some text, its URL contains something, or an element (by ref) is gone: use it after a click that loads or changes the page, instead of sleeping. Give exactly one condition. Then take a new BrowserSnapshot before acting.",
"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)" },
"text": { "type": "string", "description": "Wait until the page's visible text contains this" },
"url_contains": { "type": "string", "description": "Wait until the page URL contains this" },
"gone": { "type": "string", "description": "A ref from the latest snapshot: wait until that element has left the page" },
"timeout_seconds": { "type": "number", "description": "Give up after this long (default 10, max 60)" }
}
}
}"#;