wait_for
Block until a matching log event appears after triggering an action, then return it promptly. Avoid sleep-and-hope delays by waiting for the exact log line or error.
Instructions
Block until a matching event appears, then return it. This is the one to use after you trigger something: start the action, then wait for its log line or error rather than sleeping and hoping. Returns promptly on the first match.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Optional minimum level, e.g. ERROR | |
| since | No | Only consider events after this cursor. Take a cursor BEFORE triggering your action so you cannot match something old. | |
| topic | No | Optional topic or prefix | |
| contains | No | Text the event must contain (case-insensitive) | |
| timeout_ms | No | How long to wait (default 30000, max 120000) |