files/filetype
Identify a file's MIME type by inspecting its first bytes without relying on the file command. Reports symlinks as inode/symlink; use stat for size or permissions.
Instructions
Determines a file's MIME type - the answer file -b --mime-type gives, detected natively from the file's first bytes (no file(1) needed). A symlink is reported as inode/symlink, not followed. Use files/stat for size/permissions/ownership instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file | |
| privileged | No | Set to true to run as root |