watch
Monitor a browser tab in the background and queue an event when target text appears, disappears, or matching query lines change; a wait call blocks until an event arrives.
Instructions
Watch a tab in the background and queue an event when text appears or disappears, or when lines matching query change. wait blocks until an event arrives.
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": "watch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | remove: watch id | |
| all | No | remove: all watches | |
| run | No | CLI only: shell command to run on each event; it gets REINS_EVENT_FILE | |
| tab | No | Tab id. Default: your own target tab (each agent session gets its own) | |
| gone | No | Fire when text disappears | |
| name | No | ||
| once | No | Remove after the first event (default true) | |
| text | No | ||
| every | No | Seconds between checks, default 60 | |
| query | No | Only watch lines with these words (a|b = either) | |
| action | No | ||
| reload | No | Reload the tab before each check, for pages that do not update live | |
| browser | No | chrome, edge, ... (only when several browsers are connected) | |
| timeout | No | wait: ms, default 60000; 0 = until an event |