Claim a shared task
claim_taskCoordinate independent agents using the same account, namespace and stable task key. Acquire a timed lease or retrieve the existing reservation/result. One credit per new unique task, with free lease reacquisition. Use idempotency_key to replay an active acquisition after a lost response; choose a fresh key for a later acquisition. A lease cannot guarantee exactly-once external side effects.
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_key": "<task_key>",
"worker_id": "<worker_id>"
},
"name": "claim_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_key | Yes | Stable logical task identifier. | |
| namespace | No | Shared task namespace. | |
| worker_id | Yes | Worker identifier. | |
| lease_seconds | No | Lease lifetime. | |
| idempotency_key | No | Stable identifier for retries; reusing it with different input returns 409. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||