page_wait
Blocks until a browser page logs a matching event, then returns events with a cursor so agents can avoid polling and prevent missed or duplicate events.
Instructions
Block until the page logs an event (scribe.signal or data-scribe-signal; Scribe logs some too, like claim_lost) and return the matching events, oldest first, with a cursor. Event data is small (e.g. { card: "c_12" }); read the rest with page_state or a page action. Pass the cursor as after next time so nothing is missed or seen twice. Use it instead of polling page_state. In the result, timedOut: tell the user and wait again with the same after; closed: the user closed the tab (page_open it or stop); deleted: stop; missed: older events dropped out of the log, so scan the state.
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": "page_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Tab id, e.g. t_ab12cd34. | |
| key | No | Page key, e.g. scribe:sprint-notes. | |
| after | No | Cursor from the last page_wait (or page_state's eventCursor). Omit to wait for new events only. | |
| where | No | Match fields on event data (as text), e.g. { column: "grok issues" }. | |
| events | No | Comma-separated event names (approved,rejected). Omit for any event. | |
| timeoutMs | No | Default 7200000 (2 hours); no maximum. |