claim_task
Claim an unowned task or renew an expired lease atomically, using the observed lease generation to win races and prevent conflicting work in multi-agent coordination.
Instructions
Atomically take the lease on a TASK. Succeeds only if the task is unowned, its lease expired, or the caller already owns it. Pass the lease_generation you observed; a stale one loses the race.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| binding_token | No | Opaque token returned by this agent's join_session or plan_session. Required for reliable identity when logical agents share an MCP connection. | |
| lease_seconds | No | Lease length; clamped to [60, 7200]. | |
| lease_generation | No | Generation you observed. Omit to claim against the current one. |