task_claim
Claim, release, hand off, accept, or take over a task's mutation scope to coordinate parallel agents and prevent conflicting edits.
Instructions
Mutation-scope claims (operator methodology). Claim once when you start a scope and release once when you stop; task_update keeps the claim alive in between. claim: take a lease (default 30 min; pass minutes for long work). release: give it up. handoff: keep it until to accepts (needs note with state + next action). accept: take a handoff addressed to your lane. takeover: take a claim from a session confirmed gone (needs note with reason).
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": {
"id": "<id>",
"action": "<action>"
},
"name": "task_claim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Task id: the 8-character id shown in task_context/task_list (full UUID also works). | |
| to | No | handoff target lane, e.g. "Operator_4", or "unassigned". | |
| cwd | No | Session folder (absolute path). Filled in by the OpenCode plugin; other clients pass the working folder. | |
| note | No | ||
| action | Yes | ||
| minutes | No |