ai-claim_and_complete_work_item
ai-claim_and_complete_work_itemAtomically claim and complete a work item in one step, bypassing separate processing. Idempotently skips claim if item is already processing. Use when the result is already known.
Instructions
Atomically claims a pending work item and completes it. Use this when the agent already knows the result and doesn't need a separate processing step — collapses the (claim → complete) two-call sequence into one. Idempotent: if the item is already in 'processing', skips the claim and just completes. Items in terminal states (completed/failed/cancelled) return an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_content | No | Content for output item (if output_item_type was configured) | |
| output_name | No | Name for output item (overrides configured name) | |
| result | No | Processing result (string, object, or any structured data) | |
| work_item_id | Yes | Work item ID (@rid format) |