Install
openclaw skills install @agentpmt/zip-unzip-file-compression-10mbZip / Unzip - File Compression < 10MB: Compress/decompress zip and gzip. Use when an agent needs zip / unzip file compression < 10mb, zip unzip file compression 10mb, 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, compress.
openclaw skills install @agentpmt/zip-unzip-file-compression-10mbLast updated: 2026-06-23.
If the current date is more than 7 days after the last updated date, reinstall this skill from skills.sh or ClawHub before relying on endpoints, schemas, setup steps, or examples.
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.
Compress and decompress files using ZIP or GZIP formats. Handles archives up to 10MB with up to 200 files. Output files are stored in cloud storage for 7 days by default.
Create a ZIP or GZIP archive from input files.
Required fields:
action: "compress"format: "zip"files: Array of file objects, each with:
filename (string) - Name/path for the file inside the archivecontent_base64 (string) - Base64-encoded file contentOptional fields:
filename (string) - Name for the output ZIP file (default: "archive.zip")store_file (boolean) - Store output in cloud storage (default: true)include_contents (boolean) - Include base64 of the archive in the response (default: false)Example:
{
"action": "compress",
"format": "zip",
"files": [
{"filename": "report.txt", "content_base64": "SGVsbG8gV29ybGQ="},
{"filename": "data/notes.csv", "content_base64": "bmFtZSxhZ2UKQWxpY2UsMzA="}
],
"filename": "my_reports.zip"
}
Compresses a single file using GZIP.
Required fields:
action: "compress"format: "gzip"input_base64 (string) - Base64-encoded content of the file to compressOptional fields:
filename (string) - Name for the output file (default: "archive.gz")store_file (boolean) - Store output in cloud storage (default: true)include_contents (boolean) - Include base64 of the compressed output in the response (default: false)Example:
{
"action": "compress",
"format": "gzip",
"input_base64": "TGFyZ2UgdGV4dCBmaWxlIGNvbnRlbnQgaGVyZS4u",
"filename": "logfile.txt.gz"
}
Extract files from a ZIP or GZIP archive.
Required fields:
action: "decompress"format: "zip"input_base64 (string) - Base64-encoded ZIP archivefile_id (string) - File ID of a previously stored ZIP archiveOptional fields:
store_file (boolean) - Store each extracted file in cloud storage (default: true)include_contents (boolean) - Include base64 content of each extracted file in the response (default: false)Example using base64 input:
{
"action": "decompress",
"format": "zip",
"input_base64": "UEsDBBQAAAAI...",
"include_contents": true
}
Example using file_id:
{
"action": "decompress",
"format": "zip",
"file_id": "abc123def456"
}
Required fields:
action: "decompress"format: "gzip"input_base64 (string) - Base64-encoded GZIP filefile_id (string) - File ID of a previously stored GZIP fileOptional fields:
filename (string) - Name for the decompressed output file (default: "decompressed")store_file (boolean) - Store the decompressed file in cloud storage (default: true)include_contents (boolean) - Include base64 of the decompressed content in the response (default: false)Example:
{
"action": "decompress",
"format": "gzip",
"file_id": "abc123def456",
"filename": "restored_log.txt"
}
compress with format: "zip" and an array of files.signed_url to share or download the archive.decompress with the file_id of the uploaded archive.file_id and signed_url for individual access.compress with include_contents: true and store_file: false to get the archive as base64 in the response without storing it.store_file is true.file_id and signed_url for each stored file.files array with details for each extracted file.Zip / Unzip - File Compression < 10MB on AgentPMT.compress, decompress.file-management, page: https://clawhub.ai/agentpmt/file-management; skills.sh: npx skills add AgentPMT/agent-skills --skill file-management)No categories or industry tags are published for this tool.
Complete generated action schema: ./schema.md.
Supported action count: 2.
x402 availability: not enabled for this product.
compress (action slug: compress): 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. Price: 10 credits. Parameters: archive_format, filename, files, include_contents, input_base64, store_file.decompress (action slug: decompress): Extract files from a ZIP or GZIP archive provided via base64 or file ID. Extracted files are stored in cloud storage. Price: 10 credits. Parameters: archive_format, file_id, filename, include_contents, input_base64, store_file.Use the compact schema above for ordinary calls. Before a new production integration, or whenever parameters, enum values, nested objects, outputs, or examples are unclear, fetch live details first.
agentpmt-tool-search-and-execution with action: "get_schema", and tool_id: "zip-unzip-file-compression-10mb".agentpmt-tool-search-and-execution with action: "get_instructions" and tool_id: "zip-unzip-file-compression-10mb", or call this product with action: "get_instructions" when the product tool is already selected.MCP schema lookup through the main AgentPMT MCP server:
{
"method": "tools/call",
"params": {
"name": "AgentPMT-Tool-Search-and-Execution",
"arguments": {
"action": "get_schema",
"tool_id": "zip-unzip-file-compression-10mb"
}
}
}
For live examples, keep the same MCP tool and use these arguments:
{
"action": "get_instructions",
"tool_id": "zip-unzip-file-compression-10mb"
}
Authenticated AgentPMT REST schema lookup body:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_schema",
"tool_id": "zip-unzip-file-compression-10mb"
}
}
Authenticated AgentPMT REST live examples body:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_instructions",
"tool_id": "zip-unzip-file-compression-10mb"
}
}
Product slug: zip-unzip-file-compression-10mb
Marketplace page: https://www.agentpmt.com/marketplace/zip-unzip-file-compression-10mb
../agentpmt-account-mcp-rest-api-setup to connect the main MCP server or REST API for an Agent Group where this tool is enabled.../what-is-agentpmt for marketplace, Agent Group, workflow, MCP, REST, and payment concepts.If those setup skills are not installed beside this product skill, use the downloads below.
Core AgentPMT setup skills:
openclaw skills install what-is-agentpmtnpx skills add AgentPMT/agent-skills --skill what-is-agentpmtopenclaw skills install agentpmt-account-mcp-rest-api-setupnpx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setupskills.sh install script:
npx skills add AgentPMT/agent-skills --skill what-is-agentpmt
npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup
MCP call shape after the main AgentPMT MCP server is connected:
{
"method": "tools/call",
"params": {
"name": "Zip--Unzip---File-Compression--10MB",
"arguments": {
"action": "compress",
"archive_format": "zip",
"filename": "example filename",
"files": [
{
"content_base64": "Draft marketing copy to check for banned phrases.",
"filename": "example filename"
}
],
"include_contents": false,
"input_base64": "example input base64",
"store_file": true
}
}
}
Use the exact tool name returned by tools/list; the name above is the expected readable form.
Authenticated AgentPMT REST call body:
{
"name": "zip-unzip-file-compression-10mb",
"parameters": {
"action": "compress",
"archive_format": "zip",
"filename": "example filename",
"files": [
{
"content_base64": "Draft marketing copy to check for banned phrases.",
"filename": "example filename"
}
],
"include_contents": false,
"input_base64": "example input base64",
"store_file": true
}
}
Use the setup skill for the account connection details before making REST calls.
passed or success-style boolean, use it as the workflow gate.get_schema or get_instructions before retrying.compress fails, preserve the request parameters and retry only after fixing schema, auth, or payment errors.what-is-agentpmt, page: https://clawhub.ai/agentpmt/what-is-agentpmt; skills.sh: npx skills add AgentPMT/agent-skills --skill what-is-agentpmt)agentpmt-account-mcp-rest-api-setup, page: https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup; skills.sh: npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup)