claim_task
Atomically claim or renew a project task for an agent under a 30–86400-second lease, using the expected version to prevent conflicting work.
Instructions
Atomically claim or renew a task for 30–86400 seconds. Read its latest version first.
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": {
"project_id": "<project_id>",
"task_id": "<task_id>",
"agent_id": "<agent_id>",
"expected_version": "<expected_version>"
},
"name": "claim_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| agent_id | Yes | ||
| project_id | Yes | ||
| lease_seconds | No | ||
| expected_version | Yes |