5 credits/request
File Utilities and Editing icon

File Utilities and Editing

Core Utility

Available Actions

file-mime-type-detectfile-extension-from-mimefile-size-formatfile-path-parsefile-path-joinfile-path-normalizefile-csv-to-tablefile-json-pretty-printfile-json-minifyfile-base64-encodefile-base64-decodefile-hash-generate

Details

A utility for file metadata operations, path manipulation, and content formatting commonly needed when working with files in automation workflows and application development. MIME type detection identifies the content type of files based on filename extensions, covering documents, images, audio, video, archives, and programming languages, while reverse lookup finds appropriate file extensions for a given MIME type. File size formatting converts byte counts into human-readable strings with automatic unit scaling from bytes through petabytes. Path manipulation functions parse file paths into components including directory, filename, name, and extension, join multiple path segments with proper separators, and normalize paths by resolving relative references and redundant separators. CSV to table conversion parses comma-separated data and formats it as an ASCII table with aligned columns for display purposes, also returning structured header and row data. JSON formatting includes pretty printing with configurable indentation for readability and minification that removes all unnecessary whitespace with size reduction statistics. Base64 encoding and decoding handles text-to-base64 conversion for data embedding and transmission. Cryptographic hash generation supports MD5, SHA-1, SHA-256, and SHA-512 algorithms for content integrity verification and fingerprinting.

Use Cases

MIME type detection, file type identification, content type lookup, extension to MIME, MIME to extension, file extension lookup, file size formatting, byte size conversion, human readable file size, KB MB GB formatting, storage size display, file path parsing, path component extraction, directory extraction, filename extraction, extension extraction, path joining, path concatenation, cross-platform path, path normalization, relative path resolution, absolute path conversion, path cleanup, CSV formatting, CSV to table, tabular data display, ASCII table generation, CSV visualization, JSON pretty print, JSON formatting, JSON indentation, readable JSON, JSON beautify, JSON minify, JSON compression, JSON whitespace removal, minified JSON, JSON size reduction, base64 encode, text to base64, base64 encoding, base64 decode, base64 to text, base64 decoding, MD5 hash, SHA1 hash, SHA256 hash, SHA512 hash, content hash, file fingerprint, integrity check, checksum generation, hash generation, file metadata, file utilities, automation file operations, AI agent file handling, LLM file processing, workflow file tools

Workflows Using This Tool

Parameters

actionrequiredstring

The file operation to perform. Available actions: get_instructions (returns tool documentation), File info (file-mime-type-detect, file-extension-from-mime, file-size-format), Path operations (file-path-parse, file-path-join, file-path-normalize), Content formatting (file-csv-to-table, file-json-pretty-print, file-json-minify), Encoding (file-base64-encode, file-base64-decode), Hashing (file-hash-generate)

inputstring

Universal input parameter that accepts multiple formats depending on action: filename (e.g., 'photo.jpg'), MIME type (e.g., 'image/jpeg'), file size in bytes (e.g., '5242880'), file path (e.g., '/home/user/file.txt'), content/text (e.g., CSV, JSON, or text to encode), or comma-separated path components (e.g., 'home,user,documents'). The action determines how the input is interpreted.

input2string

Secondary input parameter for actions requiring multiple path components. Used by: file-path-join (second path component)

and 3 more parameters...

About The Developer

Apoth3osis logo

Apoth3osis

15 stars

Joined Agent Payment: August 14, 2025

We build tools that enable AI agents to excel in the mathematical realm.

Our small team develops experimental and unique solutions in the AI arena, with a strong focus on modular computing for agentic applications and custom model deployment. We have handled projects for a variety of applications across many sectors, from algorithmic trading and financial analysis, to molecular simulations and predictions, to habitat and biodiversity monitoring and wildlife conservation.

File Utilities and Editing by Apoth3osis | AgentPMT