chrome_use_wait
Wait for exactly one browser condition—an element, duration, URL, load state, JS expression, text, or download—before continuing automation.
Instructions
Wait for an element, a fixed duration, a URL, a load state, a JS condition, text, or a download. Provide exactly one of: selector, ms, url, loadState, expression, text, download.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | Wait this many milliseconds. | |
| url | No | Wait for the page URL to match this glob pattern. | |
| gone | No | With selector: wait for it to leave the DOM instead of appearing. | |
| text | No | Wait for this text to appear on the page. | |
| force | No | With tabId: act on a tab this session does not own (the user's own, or another session's), in place and in the background (--tab <handle> --force). Only when the user asked you to act on that tab; the result has forced: true and the tab's title and url. | |
| tabId | No | Target tab id (e.g. t2), label, or targetId (--tab). | |
| hidden | No | With selector: wait for it to become invisible instead of appearing. | |
| session | No | Isolated session name (chrome-use --session <name>). Each session gets its own tab group, browser tab and element refs. Omit it unless several agents share ONE MCP server — the session is otherwise derived per agent automatically. When you do share a server with sibling agents, pass a name unique to you on every call, or you will drive their tabs and invalidate their refs. | |
| download | No | Wait for a download to complete. | |
| selector | No | Wait for this CSS selector/@ref to appear (or disappear, with gone/hidden). | |
| loadState | No | Wait for this load state. | |
| timeoutMs | No | Kill the underlying chrome-use process if it hasn't responded after this many ms (default 30000). | |
| expression | No | Wait for this JS expression to become truthy. | |
| downloadPath | No | With download: save it to this path. | |
| waitTimeoutMs | No | How long to wait before giving up (distinct from the top-level timeoutMs). |