> ## Documentation Index
> Fetch the complete documentation index at: https://docs.the40thieves.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# ocr_bulk

> OCR a batch of attachments via the Text Extractor bridge.

OCR a batch of attachments via the Text Extractor bridge. Resolves and ACL-filters the candidate set server-side; requires confirmation past 20 files.

| | |
| - | - |
| **Domain** | attachments |
| **Scopes** | `read:ocr` |
| **Access** | read |
| **Tags** | `read-only`, `hitl`, `plugin-bridge`, `domain:attachments` |
| **Profile** | full only |

## Annotations

| Annotation | Value |
| - | - |
| Read-only | yes |
| Destructive | no |
| Idempotent | no |
| Accepts an idempotency key | no |

`Idempotent` is the advisory MCP `idempotentHint`. `Destructive` is also `yes` for a tool that
asks for confirmation only on some calls.

## Confirmation (human in the loop)

The handler asks for confirmation only when a call crosses a boundary (for example an overwrite, a folder-boundary crossing or a bulk-cost floor); other calls need none.

* The confirmation binds to a fingerprint of the state being approved, so a confirmation given for since-changed state is refused with `replay_drift`.

## Input

| Parameter | Type | Required | Default | Description |
| - | - | - | - | - |
| `vault` | `string` | | — | Vault id. May be omitted when only one vault is available. length 1–64; pattern `^[a-z0-9_-]+$` |
| `paths` | `string[]` | | — | — |
| `root` | `string` | | — | length 1–1024 |
| `extensions` | `string[]` | | — | — |
| `force` | `boolean` | | — | — |
| `max_concurrent` | `integer` | | — | range 1–4 |
| `elicit_token` | `string` | | — | pattern `^[a-f0-9]{32}$` |

## Output

| Field | Type | Always present | Description |
| - | - | - | - |
| `vault` | `string` | yes | — |
| `requested` | `integer` | yes | range ≥ 0 |
| `processed` | `integer` | yes | range ≥ 0 |
| `results` | `object[]` | yes | — |
| `results[].path` | `string` | yes | — |
| `results[].ok` | `boolean` | yes | — |
| `results[].text` | `string` | | — |
| `results[].error` | `string` | | — |
| `total_duration_ms` | `number` | yes | range ≥ 0 |

## Related tools

Other tools in the `attachments` domain: [`delete_attachment`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/delete_attachment/), [`get_attachment`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/get_attachment/), [`list_attachments`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/list_attachments/), [`move_attachment`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/move_attachment/), [`ocr_attachment`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/ocr_attachment/), [`write_attachment`](https://docs.the40thieves.dev/reliquary-tc/tools/reference/write_attachment/).

Back to the [tool catalog](https://docs.the40thieves.dev/reliquary-tc/tools/tool-catalog.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.