AgentPMT - The Agentic Economy

File Utilities and Editing

Core Utility
$0.05/requestMin Purchase: 20Min Purchase Price: $1

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

Parameters

(required properties listed first)

action*required
Type:string
Description: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)
Allowed values:
get_instructionsfile-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
input
Type:string
Description: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.
input2
Type:string
Description:Secondary input parameter for actions requiring multiple path components. Used by: file-path-join (second path component)
input3
Type:string
Description:Tertiary input parameter for actions requiring three or more path components. Used by: file-path-join (third path component)
hash_algorithm
Type:string
Description:Hash algorithm to use. Used for: file-hash-generate. Options: md5, sha1, sha256 (default), sha512
Default:sha256
Allowed values:
md5sha1sha256sha512
indent
Type:integer
Description:Number of spaces for JSON indentation (0-8). Used for: file-json-pretty-print. Default: 2
Default:2
Minimum:0
Maximum:8

API Example

curl -X POST "https://api.agentpmt.com/products/purchase" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-api-key-here" \
  -H "X-Budget-Key: your-budget-key-here" \
  -d '{
    "product_id": "694ed536cca5b5123ad00c33",
    "parameters": {
      "action": "get_instructions",
      "hash_algorithm": "sha256",
      "indent": 2
    }
  }'

Login to view your API and budget keys. The example above uses placeholder values. Sign in to see personalized code with your actual credentials.

About The Developer

Apoth3osis logo

Apoth3osis

13 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.