inspect_file
Probe a file from path, URL, or base64 to get kind, MIME, size, page/sheet/line counts or pixel dimensions plus token cost, so you can choose the right read tool and slice before reading.
Instructions
Cheap probe of a file (path / url / base64). Returns kind, mime, size, page count (PDF), sheet names (XLSX), line count (text), or pixel dimensions (image), plus an estimated token cost. ALWAYS call this first on anything larger than a few KB — use it to decide which read_* tool to call and which slice (pages / sheet / range) to request, so you don't blow the context window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | https:// URL. Mutually exclusive with path/data. | |
| data | No | Base64 file contents. Mutually exclusive with path/url. | |
| path | No | Local file path. Mutually exclusive with url/data. | |
| mimeType | No | Optional MIME hint (mostly for `data` mode). |