cursor_result
Wait for a Cursor Cloud Agent run to finish and return its final result, polling server-side up to the timeout. If it times out, use the returned run ID to keep checking status.
Instructions
Wait for a run to finish (polling server-side) and return its result.
Convenience wrapper over cursor_status for when you just want the final answer. Waits at most timeout_s seconds (clamped to 5 min) — on timeout, keep polling with cursor_status using the returned run_id. Large results are truncated with truncated=true. Transient API blips (429/5xx) are retried with backoff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | No | ||
| agent_id | Yes | ||
| timeout_s | No |