execute_inbox_file_batch
Process the next approved batch of inbox file items: save staged files as asset vault nodes, flag duplicates for resolution, and report remaining items.
Instructions
Execute the next batch of file-category items from the approved plan. Processes up to budget_per_run.files items. Each item: reads file from loci-stage/, saves as an asset vault node (type=asset, subtype=book), deletes the staging file, updates plan status.
An item whose title already exists in the vault is not saved: it is parked
with status duplicate, its staging file kept, and reported under
duplicates with the existing node's uid and path. The plan stays open
until each is resolved with update_inbox_item: status="skipped" to drop
it, or status="pending" with allow_duplicate=True to save a second copy
on the next batch.
Returns {processed: [{path, uid, title, tag_warnings?}], failed: [{path, error}], duplicates: [{path, title, existing_uid, existing_path, existing_name}], remaining: int}. Plan must be approved before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||