AgentPMT
Binary To/From File Converter

Binary To/From File Converter

Core Utility

Available ActionsEach successful request consumes credits as outlined below.

base64_to_hex10crhex_to_base6410crbase64_to_binary10crbinary_to_base6410crfile_to_base6410crbase64_to_file10cr

Details

Versatile data transformation utility that enables seamless conversion between various binary encoding formats and file storage operations. This function supports six core conversion actions: base64-to-hex, hex-to-base64, base64-to-binary, binary-to-base64, file-to-base64, and base64-to-file. For encoding transformations, users simply provide an input string in the source format and receive the converted output along with metadata such as byte size. The file-based operations integrate with cloud storage, allowing users to either extract base64-encoded content from existing stored files or create new files from base64 data with customizable filenames, MIME types, and expiration periods ranging from one to seven days. The function handles files up to 10MB for inline base64 returns and automatically generates signed URLs for secure file access. With built-in validation for all encoding formats and budget-based access controls, the File Binary Converter provides a reliable foundation for any workflow requiring binary data manipulation or format interoperability.

Use Cases

Encoding image or document uploads for API transmission in multi-agent pipelines, decoding base64 email attachments and converting them to downloadable files, analyzing binary file signatures by converting file headers to hexadecimal for format detection, preparing binary payloads for webhook integrations that require hex or base64 encoding, converting cryptographic hashes between hex and base64 for cross-system compatibility, extracting and re-encoding embedded binary assets from JSON or XML data feeds, building file export workflows that package generated content into downloadable cloud-stored files, debugging binary protocols by converting raw data to human-readable binary strings, migrating encoded data between systems with different encoding standards, creating temporary secure file links from base64 data for sharing in automated notification workflows

Actions(6)

base64_to_hex10cr1 param(1 required)

Convert a base64-encoded string to hexadecimal representation.

Convert a base64-encoded string to hexadecimal representation.

inputrequiredstring

Base64-encoded string to convert to hex.

hex_to_base6410cr1 param(1 required)

Convert a hexadecimal string to base64 encoding.

Convert a hexadecimal string to base64 encoding.

inputrequiredstring

Hexadecimal string to convert to base64 (even number of characters, 0-9 and a-f).

base64_to_binary10cr1 param(1 required)

Convert a base64-encoded string to a binary (0s and 1s) string representation.

Convert a base64-encoded string to a binary (0s and 1s) string representation.

inputrequiredstring

Base64-encoded string to convert to binary representation.

binary_to_base6410cr1 param(1 required)

Convert a binary string (0s and 1s) back to base64 encoding.

Convert a binary string (0s and 1s) back to base64 encoding.

inputrequiredstring

Binary string of 0s and 1s (length must be a multiple of 8; spaces between bytes are allowed).

file_to_base6410cr1 param(1 required)

Read a previously uploaded file from cloud storage and return its contents as a base64-encoded string. Maximum file size is 10MB.

Read a previously uploaded file from cloud storage and return its contents as a base64-encoded string. Maximum file size is 10MB.

file_idrequiredstring

File ID of the uploaded file to read.

base64_to_file10cr5 params(2 required)

Decode a base64 string and save it as a file in cloud storage with a signed download URL.

Decode a base64 string and save it as a file in cloud storage with a signed download URL.

inputrequiredstring

Base64-encoded file content to decode and save.

filenamerequiredstring

Name for the created file (e.g., 'output.png').

content_typestring

MIME type for the created file (e.g., 'image/png', 'application/pdf').

Default: application/octet-stream
expiration_daysinteger

Days until file expires (1-7).

Default: 7
Range: 1 - 7
store_fileboolean

Store output as a file in cloud storage (recommended for file management access).

Default: true

Frequently Asked Questions

How do I connect this tool to an external agent?

Install commands

npm install -g @agentpmt/mcp-router
agentpmt-setup

Hosted MCP config

{
  "mcpServers": {
    "agentpmt": {
      "type": "streamable-http",
      "url": "https://api.agentpmt.com/mcp",
      "headers": {
        "Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
        "x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
      }
    }
  }
}

How does an external agent use this tool?

Agent prompt

Call the AgentPMT-Tool-Search-and-Execution tool with action 'get_schema' and tool_id 695c3605767df5adfd9bc86d ("Binary To/From File Converter"). Then call the same tool with action 'call_tool', tool_id 695c3605767df5adfd9bc86d, and the parameters needed for my request.

Dependencies

1 dependencies will be automatically added when you enable this product.

Looking for help integrating AI into your business? Set up a free consultation.