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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| assignee | Yes | Name/identifier of the agent claiming, e.g. 'opencode'. |