claim_task
Atomically claim a pending task for an agent. Race-condition-safe — only one agent wins when two claim the same task simultaneously.
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>",
"agent_id": "<agent_id>"
},
"name": "claim_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ID of the task to claim | |
| agent_id | Yes | Identifier for the claiming agent (e.g. "claude-code" or a UUID) | |
| enforce_assignee | No | When true, rejects the claim if the task assignee does not match agent_id. Defaults to false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Task ID | |
| status | Yes | New status after claiming (in_progress) | |
| claimed_by | Yes | Agent identifier that claimed the task |