deckprobe

v0.1.1
io.github.deckflow/deckprobe Checked 4 hours ago Published 3 months ago

Inspect PDF, Office, and iWork documents without rendering: counts, metadata, security signals

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

probe Probe a document

Read facts about one local PDF, Microsoft Office, or Apple iWork document without opening or rendering it: page, slide, and sheet counts; title, author, and dates; encryption, macro, signature, and active-content signals; structure; embedded assets; and integrity. Handles .pdf, .docx/.xlsx/.pptx, legacy .doc/.xls/.ppt, and modern .key/.numbers/.pages. Start with targets ["@summary"], or ["@security"] to triage an untrusted file. Prefer this over unzipping the document or parsing its bytes by hand. Reports facts ABOUT the document, never its text: it does not extract, render, run macros, foll…

ParameterTypeDescription
path *stringPath to the document. The filename extension selects the format driver, and the container is then verified against it.
budgetobjectOverride the level's resource limits. Raise after a BUDGET_EXCEEDED error.
levelstringProbe budget and eligible paths. header: identity only. metadata (default). deep: higher-cost paths, needed only when a target's min_level says so.
min_confidencestringWeakest evidence a path may offer. Default high; lower it to accept an approximation.
target_confidenceobjectPer-target override, e.g. {"slide_count": "exact"} to force the authoritative path.
targetsarrayShort names (slide_count), canonical names (powerpoint.slide_count), or presets: @header, @summary, @security, @structure, @assets, @quality, @format, @all. Defaults to the driver's own set. Call list…
viewstringreport: full evidence — value, confidence, path, and cost per target. values: a compact target-to-value map.

probe_batch Probe several documents

Probe many local documents in one call — inventory a folder, triage a batch of uploads, or compare a set of files. One engine process handles the whole batch, so this is much cheaper than calling probe once per file. Takes literal paths; expand any glob yourself first. Returns one entry per path, in the order given, each carrying that file's report or its own error envelope. A file that fails does not affect the others. Defaults to the compact "values" view because inventory rarely needs per-target evidence; pass view: "report" when it does.

ParameterTypeDescription
paths *arrayDocument paths, at most 64 per call. Literal paths only.
budgetobjectOverride the level's resource limits. Raise after a BUDGET_EXCEEDED error.
levelstringProbe budget and eligible paths. header: identity only. metadata (default). deep: higher-cost paths, needed only when a target's min_level says so.
min_confidencestringWeakest evidence a path may offer. Default high; lower it to accept an approximation.
targetsarrayShort names (slide_count), canonical names (powerpoint.slide_count), or presets: @header, @summary, @security, @structure, @assets, @quality, @format, @all. Defaults to the driver's own set. Call list…
viewstringreport: full evidence — value, confidence, path, and cost per target. values: a compact target-to-value map.

list_formats List supported formats

List the document formats DeckProbe can inspect: drivers, the extensions each one handles, and where support stops. Call this when you are unsure whether a file type is supported at all.

list_targets List targets for a format

List every target a format supports, with its aliases, value type, minimum probe level, cost class, and which @selectors include it. Call this before naming a target you have not already seen — probe rejects an unknown one rather than guessing.

ParameterTypeDescription
format *stringA format profile from list_formats, such as "pdf", "docx", "xlsx", "pptx", "doc", "xls", "ppt", "key", "numbers", or "pages".
detailstringcompact (default): target names, aliases, descriptions, levels, and selector membership. full: the complete report, including each target's JSON Schema fragment and every selector's expanded member li…