Wait in GPM Browser
gpm_browser_waitWaits for a page element to reach a visible, hidden, attached, or detached state, for the URL to contain a string, or for a fixed delay before the next browser automation step.
Instructions
Chờ phần tử theo selector (visible/hidden/attached/detached), chờ URL chứa chuỗi, hoặc chờ một khoảng ms.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gpm_browser_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | Chờ cố định số mili-giây (tối đa 30000) | |
| state | No | Trạng thái của selector (mặc định visible) | |
| selector | No | Selector cần chờ | |
| profile_id | No | ID của profile GPM đang kết nối CDP (có thể bỏ trống nếu chỉ có 1 profile đang kết nối) | |
| timeout_ms | No | Timeout mili-giây (mặc định 15000) | |
| url_contains | No | Chờ tới khi URL hiện tại chứa chuỗi này |