get_task
Retrieve a specific task and its sessions by task ID, optionally scoped to a repository using owner and repo parameters.
Instructions
Get a single task (with its sessions) by ID.
Prefers the repo-scoped endpoint when owner+repo are provided: GET /agents/repos/{owner}/{repo}/tasks/{task_id} Otherwise: GET /agents/tasks/{task_id}
The response includes a sessions array — each session has its own state,
model, prompt, head_ref/base_ref, and any error.message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| owner | No | ||
| task_id | Yes |