claim_next_task
Claim the next eligible pending task atomically, optionally filtered by tag, skipping tasks already assigned to others. Returns task summary or null if none are available.
Instructions
Atomically claim the first eligible pending task (optionally filtered by tag) instead of a separate list_tasks + claim_task round trip. Skips tasks pre-assigned to someone else. Returns null if no eligible pending task is available, otherwise a task summary (no history[] — call get_task for that).
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": {
"assignee": "<assignee>"
},
"name": "claim_next_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| assignee | Yes | Name/identifier of the agent claiming, e.g. 'opencode'. |