browser_wait_for_element
browser_wait_for_elementWait for a browser element to become attached, detached, visible, or hidden, and refresh its element ID when the page changes so automation can act on the correct target.
Instructions
Wait for an element from browser_get_interactives to become attached, detached, visible, or hidden. Get a fresh element_id if the page revision changed while waiting.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tab_id": "<tab_id>",
"element_id": "<element_id>",
"state": "<state>"
},
"name": "browser_wait_for_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| tab_id | Yes | ||
| frame_id | No | Chrome frame ID inside the tab from browser_get_frames. 0 is the top document, which is the default. | |
| element_id | Yes | Opaque element_id returned by browser_get_interactives. | |
| session_id | No | Session that owns the tab. Pass it on every call so the runtime can refuse a tab another session holds. | |
| timeout_ms | No | ||
| session_name | No | Name for this conversation's Chrome tab group, so the tab bar reads as the task instead of a generated id. Sticky: pass it once when the name becomes clear, and again only to rename. |