wait_selector
Wait for a DOM element to reach a specified state (e.g., visible) within a timeout, ensuring the page is ready before proceeding.
Instructions
wait_selector(".modal", "visible", 15) — 等待元素状态
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": {
"sel": "<sel>"
},
"name": "wait_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sel | Yes | ||
| tab | No | ||
| state | No | ||
| timeout | No |