omitly-mcp
v5.6.4Omitly's local, verifiable PDF redaction for AI agents — your documents never leave your device.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
find_sensitive_regions
Scan a PDF on-device and return candidate regions that look like PII — emails, US SSNs, phone numbers, card numbers, and Australian identifiers (TFN, ABN, ACN, Medicare, Centrelink CRN, IHI, BSB; kinds 'tfn'/'abn'/'acn'/'medicare'/'crn'/'ihi'/'bsb') — each with the page and exact coordinates (in PDF points) the redaction engine needs. Use this FIRST so you select regions by entity ('redact every TFN') and pass the returned coordinates straight to redact_pdf, instead of guessing geometry from a rendered page. Numeric kinds are check-digit validated where a published algorithm exists (CRN ha…
| Parameter | Type | Description |
|---|---|---|
pdfPath * | string | absolute path to the PDF to scan |
regions | array | narrow LISTED pattern kinds to these regional packs (generic kinds always listed; confirmed under-mark survivors always report); omit to scan everything — the safe default |
locate_text
Locate exact text strings in a PDF and return each occurrence's page and coordinates (in PDF points). Use this for what pattern-matching can't catch — names, addresses, account references — by doing the entity recognition YOURSELF and passing the literal strings here; the engine resolves where they sit so you never guess geometry from a rendered page. Feed the returned regions straight to redact_pdf. Case-insensitive; a string the PDF splits across text operators may not match as one run. Each hit returns a masked preview, not the raw text. Nothing is uploaded.
| Parameter | Type | Description |
|---|---|---|
pdfPath * | string | absolute path to the PDF to search |
texts * | array | literal strings to locate |
redact_by_entity
Find and redact PII in a PDF in ONE on-device step: scan, keep only the requested entity kinds (email/ssn/phone/card plus the Australian tfn/abn/acn/medicare/crn/ihi/bsb — omit `kinds` to redact every kind detected), remove them, verify, and return what was redacted plus the audit log. This is the 'just scrub the obvious PII' shortcut; when you need to review before removing, call find_sensitive_regions first. Same caveat as the detector: matches are best-effort pattern matching, not a completeness guarantee and not a compliance assessment. Nothing is uploaded.
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | absolute path to write the redacted PDF |
pdfPath * | string | absolute path to the source PDF |
drawBox | boolean | also paint a black bar (default: opaque fill only) |
kinds | array | entity kinds to redact; omit to redact all detected |
regions | array | narrow to these regional packs (intersects with `kinds`); omit for all |
redact_pdf
Redact regions of a PDF on-device using Omitly. Removes the underlying text and image data (not a black box over it), checks the file for copies of the removed text that editing software leaves behind, and returns a signed audit log. The file is never uploaded — redaction happens locally. A region's `reason` is your own audit label (e.g. 'PII: SSN'); the words AI_PROPOSAL, MANUAL and OCR_CORRECTED are reserved for what a person decided in the Omitly app, and a request using one is refused whole, with nothing written.
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | absolute path to write the redacted PDF |
pdfPath * | string | absolute path to the source PDF |
regions * | array | regions to remove |
analysisId | string | the analysisId returned by find_sensitive_regions or locate_text for THIS document; required when the Omitly desktop app is running and the regions would be queued for a person to accept (it ties the… |
verify_redaction
Re-scan an already-redacted PDF on-device and report whether anything recoverable is still found. With a configured native engine and this file's own `<path>.audit.json` sidecar (written by redact_pdf/redact_by_entity), this re-checks exactly the regions that were redacted — the strongest form of this check. Without a native engine (or without that sidecar — e.g. the file wasn't redacted by this tool), it falls back to a general on-device re-scan of the whole file and reports whether anything is still detectable — a good-faith re-check, not a claim of the same rigor as the sidecar-based…
| Parameter | Type | Description |
|---|---|---|
pdfPath * | string | absolute path to the redacted PDF to verify |
check_license
Report Omitly's current licence or trial state on this machine — free, takes no arguments, and reads no document. Use it to answer 'am I licensed?', to see how many trial days are left, or to confirm a licence the user just saved has been picked up. Re-resolved on EVERY call, so buy → save the licence file → call again works without restarting this server. Reports which resolution step supplied the licence (OMITLY_LICENSE_FILE, the activated desktop licence, or the import inbox ~/.omitly/omitly.license), the tier, the vendor-signed licensee name, whether the licence is bound to this one…
verify_seal
Verify a PDF's embedded Omitly audit report and whole-file tamper-evidence seal (v1: Ed25519; v2: ML-DSA-87 with ECDSA P-384) — on-device, nothing uploaded. Distinct from `verify_redaction`: that tool re-checks whether redacted regions are still empty; this tool cryptographically checks whether the delivered bytes have changed since they were sealed. The seal proves INTEGRITY, NOT IDENTITY: the signing key travels with the file (per-install, or one-time for a single output), so a valid seal means 'unchanged since sealed by the holder of this key', never 'produced by Omitly'. Compare `sealFin…
| Parameter | Type | Description |
|---|---|---|
pdfPath * | string | absolute path to the PDF to check for an Omitly audit report and seal |
verify_document
Reports whether a received PDF's embedded Omitly audit report and whole-file seal still verify (v1: Ed25519; v2: ML-DSA-87 with ECDSA P-384) — on-device, needs the native engine, no licence required. A seal shows integrity, not origin, and is not a check of the content: the signing key travels with the file, so a valid seal means 'unchanged since sealed by the holder of this key', never 'produced by Omitly', and anyone can seal a file with their own key. This tool never gives `safe_to_send`; for the content, run `check_redaction`. A `seal_unsupported_version` verdict means this verifier is t…
| Parameter | Type | Description |
|---|---|---|
pdfPath * | string | absolute path to the PDF to check for an Omitly audit report and seal |
create_pdf
Generate a clean PDF from Markdown (or raw HTML) on-device, rendered through a real browser engine so it looks printed — not like a script's best guess. Give it Markdown inline via `source` (or a file via `sourcePath`) and an `outputPath`; it writes the PDF and returns the path. Use this instead of writing a one-off reportlab/LaTeX/pandoc script. Nothing is uploaded.
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | absolute path to write the PDF |
css | string | extra CSS appended after the default print styles |
format | string | input format (default: markdown) |
source | string | inline Markdown/HTML (omit if using sourcePath) |
sourcePath | string | absolute path to a Markdown/HTML file |
title | string | document <title> / metadata |
check_redaction
Audit an ALREADY-redacted PDF and report whether sensitive text still survives underneath the redaction — the 'did my black boxes actually remove the data?' check. Most tools redact by drawing a rectangle over text while leaving the characters in the file, where they stay selectable and extractable. This re-extracts the text on-device and flags any emails, SSNs, phone or card numbers that are still present, each with a MASKED preview — the raw value never leaves the machine. It checks the page text layer, text surviving UNDER redaction marks, incremental-update prior revisions (the classic…
| Parameter | Type | Description |
|---|---|---|
pdfPath * | string | absolute path to the supposedly-redacted PDF to audit |
extract_pdf_text
Extract a PDF's text, page by page, for reading or summarizing — PII-MASKED BY DEFAULT, so detected emails, SSNs, phone/card numbers and Australian identifiers (TFN/ABN/ACN/Medicare/CRN/IHI/BSB) never flood your context window as raw values. Each page returns its (masked, unless you opt out) text plus 'spans': the CHAR offset (not byte offset — matters for any non-ASCII text) of every detected PII value with its kind, so you can still reason about WHERE something was found even though the value itself reads as a masked preview (e.g. '•••-••-6789'). Pass 'masked: false' ONLY when…
| Parameter | Type | Description |
|---|---|---|
pdfPath * | string | absolute path to the PDF to extract text from |
masked | boolean | false is an explicit opt-in to RAW (unmasked) text — the raw PII values will then appear verbatim in this response. Omit, or pass true, for the default masked behaviour. |
regions | array | narrow which PII kinds are detected/masked to these regional packs (generic kinds like email/card always apply regardless); omit to scan everything — the safe default |
propose_redactions
Propose regions to redact for a PERSON to accept in the Omitly desktop app (omitly#1643, bring your own AI). The explicit, preferred form for agents working alongside a lawyer: nothing is written by this call. The desktop app shows the proposal, the person accepts or rejects, and on acceptance Omitly removes the content, checks the file for copies left behind and seals the output with a record that a person decided. Requires the Omitly desktop app to be running on this computer; use get_proposal_status to follow the outcome. Same inputs as redact_pdf (a region `reason` may not be AI_PROPOSAL,…
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | your suggested path for the redacted PDF; the person picks the real one in Omitly's save dialog |
pdfPath * | string | absolute path to the source PDF |
regions * | array | regions proposed for removal |
analysisId | string | the analysisId returned by find_sensitive_regions or locate_text for THIS document; required when the Omitly desktop app is running and the regions would be queued for a person to accept (it ties the… |
get_proposal_status
Report what happened to a proposal queued by propose_redactions (or by redact_pdf / redact_by_entity while accept-in-app was on): pending, accepted, rejected, applied (removed and sealed by the desktop app, with the output path and verdict), failed, or expired. Free; reads no document.
| Parameter | Type | Description |
|---|---|---|
proposalId * | string | the proposalId returned when the proposal was queued |
pdf_info PDF info
Read basic facts about a PDF without opening it in a viewer: page count, each page's size and rotation (first 500 pages), and flags for encryption, forms, signatures, comments, XFA and layers. Returns counts and flags only, never text or field values. Works on encrypted files (reports encrypted: true). Page numbers start at 1 (the check tools return 0-based `page` values: add 1). Example: {"pdfPath":"invoice.pdf"}. Nothing is uploaded.
| Parameter | Type | Description |
|---|---|---|
pdfPath * | string | path to the PDF, inside the allowed folder |
merge_pdfs Merge PDFs
Join 2 to 50 PDFs, in the order given, into one new PDF. All pages of every input are kept. Writes a NEW .pdf inside the allowed folder and never changes or overwrites an existing file. Form fields are kept (a clashing field name is renamed, with a warning). The result starts from an empty document, so bookmarks, document metadata, page labels and layers are not carried over; they are listed in `lost`. Digital signatures are removed (the output is a new, unsigned document). Example: {"inputs":["a.pdf","b.pdf"],"outputPath":"merged.pdf"}. This is not redaction and does not sanitise. Use redact_…
| Parameter | Type | Description |
|---|---|---|
inputs * | array | PDFs to join, in order |
outputPath * | string | new .pdf to create; must not exist |
extract_pages Extract pages
Copy chosen pages of a PDF into one new PDF, in the order listed. Page numbers start at 1 (the check tools return 0-based `page` values: add 1). Writes a NEW .pdf inside the allowed folder and never changes or overwrites an existing file. Pages are an array of numbers and ranges; a page may not be listed twice. Bookmarks to kept pages, metadata and form fields on kept pages are kept; layers and static XFA are dropped (listed in `lost`). Digital signatures are removed. A dynamic XFA form or an encrypted PDF is refused. Example: {"pdfPath":"report.pdf","pages":[1,"3-5"],"outputPath":"report-part…
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | new .pdf to create; must not exist |
pages * | array | pages to keep, 1-based, in output order |
pdfPath * | string | path to the PDF, inside the allowed folder |
split_pdf Split PDF
Split a PDF into several new PDFs, one per range. Page numbers start at 1 (the check tools return 0-based `page` values: add 1). Each range is a page spec (numbers and ranges) of consecutive pages in order, such as ["1-3"] or [4,5]; each file is named `<prefix>-p<first>-<last>.pdf` (or `<prefix>-p<first>.pdf` for one page) inside `outputDir`. All files are created or none are. Writes a NEW .pdf inside the allowed folder and never changes or overwrites an existing file. Layers and static XFA are dropped (listed in `lost`); digital signatures are removed. Example: {"pdfPath":"book.pdf","ranges":…
| Parameter | Type | Description |
|---|---|---|
outputDir * | string | existing folder inside the allowed folder (the allowed folder itself is fine) |
pdfPath * | string | path to the PDF, inside the allowed folder |
prefix * | string | file name prefix: letters, digits, . _ -, up to 64 |
ranges * | array | one page spec per output file |
edit_pages Edit pages
Reorder, delete, rotate and insert blank pages in one step by giving the FINAL page list. Each entry is `{"source": n, "rotate": 0|90|180|270}` (n is a page of the ORIGINAL document, 1-based) or `{"blank": true, "size": "previous"|"A4"|"Letter"}`. A page you leave out is deleted; the list order is the new order; a source page may appear only once; at least one entry must be a source page. Page numbers start at 1 (the check tools return 0-based `page` values: add 1). Writes a NEW .pdf inside the allowed folder and never changes or overwrites an existing file. Page labels are removed when pages…
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | new .pdf to create; must not exist |
pages * | array | the final page list |
pdfPath * | string | path to the PDF, inside the allowed folder |