sniff_file
Identifies a local file by binary magic bytes and container structure instead of its filename extension, detecting mismatches such as MP4 disguised as PDF or Word saved as .zip.
Instructions
Identify a local file from its binary magic bytes and container structure without trusting its filename extension. Detects mismatches (e.g. an MP4 disguised as a PDF or a Word document saved as .zip).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the local file to inspect. |