ai-claim_and_complete_work_item
ai-claim_and_complete_work_itemClaim and complete a pending work item in a single atomic operation. Idempotent: skips claim if already processing; terminal items return error.
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) |