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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_id": "<task_id>"
},
"name": "get_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| owner | No | ||
| task_id | Yes |