wait_and_snapshot
Waits for a specified selector or text to reach a visible or attached state, then returns a page snapshot. Combines waiting and snapshotting into one call for conditional page capture.
Instructions
Wait for selector/text then return snapshot. Combines wait_for + browser_snapshot in one call.
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": "wait_and_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to wait for | |
| state | No | visible | |
| timeout | No | ||
| selector | No | CSS selector to wait for |