grok_task_result
Fetch the result of a background job. Waits up to max_wait_ms for completion, then returns final result or a still-running status.
Instructions
Fetch the result of a grok_task job (background, or one whose request timed out). Waits up to max_wait_ms for completion, then returns either the final result or a still-running status. Safe to call repeatedly. Results persist across server restarts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job ID returned by grok_task. | |
| max_wait_ms | No | How long to wait for completion before returning (default 25000, max 50000). |