AgentPMT
Zip / Unzip - File Compression < 10MB

Zip / Unzip - File Compression < 10MB

Core Utility

Available ActionsEach successful request consumes credits as outlined below.

compress10crdecompress10cr

Details

File compression and decompression utility that handles zip and gzip formats for archives up to 10MB in size. This function supports two primary actions: compress and decompress, allowing users to bundle multiple files into a single zip archive or compress individual files using gzip, as well as extract contents from existing archives. For zip compression, users provide an array of files with filenames and base64-encoded content, supporting up to 200 files per archive with built-in path traversal protection for security. For gzip operations, users supply a single base64-encoded input along with an optional filename. Decompression accepts archives via base64 encoding or cloud storage file ID, automatically extracting all contents and optionally returning each file's base64 data inline for immediate processing. Extracted files and generated archives are stored in cloud storage with secure signed URLs for convenient access, and users can toggle the include_contents option to receive base64 output directly in the response. With automatic size validation and budget-based access controls, the Archive Compressor provides a reliable solution for standard file bundling and extraction workflows within agent pipelines.

Use Cases

Bundling multiple generated reports or documents into a single downloadable zip file, extracting uploaded zip archives to process individual files in automated workflows, compressing JSON or CSV data exports for efficient storage and transfer, unpacking user-submitted archives to validate and scan contained files, creating backup bundles of configuration files or logs for archival, decompressing gzipped API responses or data feeds for parsing, packaging multi-file code outputs or assets for delivery to end users, reducing payload sizes for base64 data transfers between pipeline stages, extracting email attachments from compressed formats for content analysis, preparing batched file uploads by compressing multiple assets into a single archive for downstream systems

Actions(2)

compress10cr6 params(1 required)

Create a ZIP or GZIP archive from input files. ZIP supports up to 200 files; GZIP compresses a single file. Maximum total size is 10MB.

Create a ZIP or GZIP archive from input files. ZIP supports up to 200 files; GZIP compresses a single file. Maximum total size is 10MB.

archive_formatrequiredstring

Archive format to use.

Values:
zipgzip
filesarray

Files to include in a zip archive. Each object must have 'filename' (string) and 'content_base64' (string). Required for ZIP compression.

Array of: object
input_base64string

Base64-encoded file content for GZIP compression.

filenamestring

Output archive filename (default: 'archive.zip' or 'archive.gz').

include_contentsboolean

Include base64 of the archive in the response.

Default: false
store_fileboolean

Store output in cloud storage for file management access.

Default: true
decompress10cr6 params(1 required)

Extract files from a ZIP or GZIP archive provided via base64 or file ID. Extracted files are stored in cloud storage.

Extract files from a ZIP or GZIP archive provided via base64 or file ID. Extracted files are stored in cloud storage.

archive_formatrequiredstring

Archive format of the input.

Values:
zipgzip
input_base64string

Base64-encoded archive to decompress.

file_idstring

File ID of a previously stored archive to decompress.

filenamestring

Output filename for GZIP decompressed file (default: 'decompressed').

include_contentsboolean

Include base64 content of each extracted file in the response.

Default: false
store_fileboolean

Store each extracted file in cloud storage.

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 695c36ca767df5adfd9bc86f ("Zip / Unzip - File Compression < 10MB"). Then call the same tool with action 'call_tool', tool_id 695c36ca767df5adfd9bc86f, 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.

Zip / Unzip - File Compression < 10MB by Apoth3osis | AgentPMT