

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.
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.
archive_formatrequiredstringArchive format to use.
Values:
zipgzip
filesarrayFiles to include in a zip archive. Each object must have 'filename' (string) and 'content_base64' (string). Required for ZIP compression.
Array of: object
input_base64stringBase64-encoded file content for GZIP compression.
filenamestringOutput archive filename (default: 'archive.zip' or 'archive.gz').
include_contentsbooleanInclude base64 of the archive in the response.
Default:
falsestore_filebooleanStore output in cloud storage for file management access.
Default:
truedecompress10cr6 params(1 required)Extract files from a ZIP or GZIP archive provided via base64 or file ID. Extracted files are stored in cloud storage.
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.
archive_formatrequiredstringArchive format of the input.
Values:
zipgzip
input_base64stringBase64-encoded archive to decompress.
file_idstringFile ID of a previously stored archive to decompress.
filenamestringOutput filename for GZIP decompressed file (default: 'decompressed').
include_contentsbooleanInclude base64 content of each extracted file in the response.
Default:
falsestore_filebooleanStore each extracted file in cloud storage.
Default:
trueFrequently Asked Questions
How do I connect this tool to an external agent?
You can install the local MCP server by opening a terminal and running:
Install commands
npm install -g @agentpmt/mcp-router
agentpmt-setupThis will connect you to local agents like Claude Code, Windsurf, Grok Build, Cursor, etc.
Alternatively you can connect to the hosted version with this config block, no installation required:
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\"}"
}
}
}
}View MCP Connection Instructions for more details.
How does an external agent use this tool?
After the external agent is connected to an Agent Group that can use this tool, paste this prompt into the agent:
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.
The agent should fetch the tool schema first, collect the required parameters for your request, and then call the tool through AgentPMT.
Dependencies
1 dependencies will be automatically added when you enable this product.






