Wait for something to happen
wait_for_attentionWait until something happens on what Monity watches for the user, then answer as get_what_needs_attention does: a new alert, a check that failed, an uptime incident that began or ended, a test run that failed, a dataset run that finished or failed. Use it when the user asks to be told when something changes while you work or wait ("watch this for the next hour"): call it again and again, each time with the since its answer names. It holds the call open for up to waitSeconds and looks every 10 seconds; with nothing new it answers happened 0 and what is so now. Without since it waits for what happens from now on. It checks no website itself: Monity does, on each monitor's own schedule.
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_for_attention"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | A date and time (ISO): the asOf or since of the answer before. Default: now, so only what happens from here on. | |
| waitSeconds | No | How long to wait here, in seconds (default 30, at most 50). | |
| workspaceId | No | Only this workspace, for uptime monitors, tests and datasets (from list_workspaces). |