Cursor: wait for run
cursor_wait_runPoll a Cursor agent run until it reaches a terminal state or waitMs elapses, then return the run status plus a timedOut flag for deciding whether to keep waiting.
Instructions
Poll one run until it is terminal or waitMs elapses (default 30s, maximum 45s). Returns what cursor_get_run returns plus timedOut; call again to keep waiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | Run id, in `run-<uuid>` form. | |
| waitMs | No | Upper bound on the wait. Kept under the client's request timeout on purpose. | |
| agentId | Yes | Agent id, in `bc-<uuid>` form. | |
| pollIntervalMs | No | Delay between polls. Default 5000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| polls | Yes | ||
| status | Yes | ||
| branches | Yes | ||
| terminal | Yes | ||
| timedOut | Yes | ||
| elapsedMs | Yes | ||
| durationMs | No | ||
| resultBytes | No |