Probe a document
probeGet document facts—page/slide counts, metadata, security signals, structure, and integrity—from local PDF, Office, and iWork files without opening or rendering them. Use @security to triage untrusted documents.
Instructions
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, follow external references, or open a network connection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the document. The filename extension selects the format driver, and the container is then verified against it. | |
| view | No | report: full evidence — value, confidence, path, and cost per target. values: a compact target-to-value map. | |
| level | No | Probe budget and eligible paths. header: identity only. metadata (default). deep: higher-cost paths, needed only when a target's min_level says so. | |
| budget | No | Override the level's resource limits. Raise after a BUDGET_EXCEEDED error. | |
| targets | No | Short 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_targets rather than guessing a name. @summary omits statistics needing a full-file read, so ask for a PDF's page_count explicitly. | |
| min_confidence | No | Weakest evidence a path may offer. Default high; lower it to accept an approximation. | |
| target_confidence | No | Per-target override, e.g. {"slide_count": "exact"} to force the authoritative path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ||
| schema_version | No |