Wait For Text
wait_for_textWaits until specified text appears in a page selector (default body), enabling reliable AJAX/SPA text detection before continuing automation.
Instructions
Wait until text appears in selector (default body). For AJAX/SPA text signals.
Ex: wait_for_text('t0', 'Welcome back', timeout_s=10) → {"ok":true,"found_in_ms":1840}
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>",
"text": "<text>"
},
"name": "wait_for_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| tab_id | Yes | ||
| selector | No | body | |
| timeout_s | No | ||
| case_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||