wait_route
Block until a route finishes or timeout, then report outcome, messages moved, rate, and failure cause; avoids polling exit_on_empty jobs.
Instructions
Block until a route finishes, then report how it ended. Use this instead of polling route_status for a job started with exit_on_empty: it costs one tool call regardless of how long the job runs. Returns finished (false if timeout_ms elapsed first — the route is left running), the outcome, the total messages moved and the rate achieved. An outcome of failed carries the cause in error. Default timeout 60000 ms, maximum 18000000 ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The route name. | |
| timeout_ms | No | How long to wait before giving up and returning `finished: false`, in milliseconds. Defaults to 60000; values above 18000000 are clamped. The route keeps running when the wait times out. |