🦀 ClawHub
Detect File Type - Local
by @pgeraghty
Local, offline AI-powered file type detection — no network, no API keys
⚡ When to Use
💡 Examples
Single file
detect_file_type path/to/file
Multiple files
detect_file_type file1.pdf file2.png file3.zip
Recursive directory scan
detect_file_type --recursive ./uploads/
From stdin
cat mystery_file | detect_file_type -Optional best-effort fast path (head only)
cat mystery_file | detect_file_type --stdin-mode head --stdin-max-bytes 1048576 -
Output formats
detect_file_type --json file.pdf # JSON (default)
detect_file_type --human file.pdf # Human-readable
detect_file_type --mime file.pdf # Bare MIME type
Programmatic (Python)
python -m detect_file_type path/to/file
TERMINAL
clawhub install detect-file-type-local