claim_task
Claim a pending task to implement it as the assigned agent, blocking pre-assigned tasks and returning the task summary.
Instructions
Claim a pending task as the implementer working on it. Fails if the task was pre-assigned to someone else. Returns the task summary (no history[] — call get_task for that).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| assignee | Yes | Name/identifier of the agent claiming the task, e.g. 'opencode'. | |
| expected_version | No | Pass the task's current version to detect races with another claimer. |