# Zip / Unzip - File Compression < 100MB

## Links

- Product page URL: https://www.agentpmt.com/marketplace/zip-unzip-file-compression-100mb
- Product markdown URL: https://www.agentpmt.com/marketplace/zip-unzip-file-compression-100mb?format=agent-md
- Product JSON URL: https://www.agentpmt.com/marketplace/zip-unzip-file-compression-100mb?format=agent-json

## Overview

- Product ID: 695c372f767df5adfd9bc870
- Vendor: Apoth3osis
- Type: core utility
- Unit type: request
- Price: 2000 credits
- Categories: Data Processing, Data Formatting & Conversion, File & Binary Operations
- Generated at: 2026-05-30T20:24:33.394Z

### Page Description

High-capacity file compression and decompression utility designed specifically for handling zip and gzip archives ranging from 10MB to 100MB in size. This function complements the standard archive compressor by accepting payloads that exceed typical size limits, supporting up to 500 files per zip archive with built-in path traversal protection for secure extraction. Users can compress multiple files into a single zip archive by providing an array of filenames with base64-encoded content, or compress individual large files using gzip format. Decompression accepts archives via cloud storage file ID or base64 encoding, automatically extracting all contents and uploading each file to cloud storage with secure signed URLs for retrieval. Unlike the standard version, this large-capacity tool always stores outputs to cloud storage rather than returning inline base64 data, ensuring efficient handling of substantial payloads without memory constraints. The function enforces strict size boundaries, rejecting inputs under 10MB (directing users to the standard tool) and over 100MB (recommending file splitting), while automatic budget-based access controls maintain proper file isolation. The Archive Compressor (Large) is essential for workflows involving sizeable datasets, media collections, or bulk file operations that exceed standard compression limits.

### Agent Description

Compress/decompress large archives (10-100MB). Up to 500 files per zip. Always stores to cloud storage.

## Details

### Details

High-capacity file compression and decompression utility designed specifically for handling zip and gzip archives ranging from 10MB to 100MB in size. This function complements the standard archive compressor by accepting payloads that exceed typical size limits, supporting up to 500 files per zip archive with built-in path traversal protection for secure extraction. Users can compress multiple files into a single zip archive by providing an array of filenames with base64-encoded content, or compress individual large files using gzip format. Decompression accepts archives via cloud storage file ID or base64 encoding, automatically extracting all contents and uploading each file to cloud storage with secure signed URLs for retrieval. Unlike the standard version, this large-capacity tool always stores outputs to cloud storage rather than returning inline base64 data, ensuring efficient handling of substantial payloads without memory constraints. The function enforces strict size boundaries, rejecting inputs under 10MB (directing users to the standard tool) and over 100MB (recommending file splitting), while automatic budget-based access controls maintain proper file isolation. The Archive Compressor (Large) is essential for workflows involving sizeable datasets, media collections, or bulk file operations that exceed standard compression limits.

### Actions

- `compress` (20 credits): Create a ZIP or GZIP archive from input files. ZIP supports up to 500 files; GZIP compresses a single file. Input and output must be between 10MB and 100MB.
- `decompress` (20 credits): Extract files from a ZIP or GZIP archive (10-100MB). Provide via file_id or input_base64. All extracted files are uploaded to cloud storage.

### Use Cases

Bundling large datasets or machine learning model files into distributable zip archives, extracting bulk media uploads containing high-resolution images or video assets, compressing extensive log file collections for long-term storage and archival, unpacking large software distribution packages for automated deployment pipelines, creating consolidated backups of sizeable document libraries or project directories, decompressing substantial data exports from enterprise systems or databases, packaging large audio file collections or podcast episodes for delivery, extracting research datasets distributed as compressed archives for analysis workflows, bundling multiple high-fidelity design assets or CAD files for client handoff, compressing batch exports of user-generated content for platform migration or backup operations

### Workflows Using This Tool

No public workflows currently reference this product.

### Related Content

No related content is currently linked to this product.

## Integration Details

### DynamicMCP

- Setup page URL: https://www.agentpmt.com/dynamic-mcp
- Claude setup guide: https://www.agentpmt.com/dynamic-mcp?platform=claude#videos
- ChatGPT setup guide: https://www.agentpmt.com/dynamic-mcp?platform=chatgpt#videos
- Cursor setup guide: https://www.agentpmt.com/dynamic-mcp?platform=cursor#videos
- Windsurf setup guide: https://www.agentpmt.com/dynamic-mcp?platform=windsurf#videos

Use the local router for command-based MCP clients. It forwards requests to `https://api.agentpmt.com/mcp` and does not execute tools locally.

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

### REST API

The live page renders cURL, Python, JavaScript, and Node.js examples. Logged-in users see those examples prefilled with their own API and budget credentials.

- Purchase endpoint: https://api.agentpmt.com/products/purchase
- Authorization format: `Bearer <base64(apiKey:budgetKey)>`

```bash
curl -X POST "https://api.agentpmt.com/products/purchase" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer eW91ci1hcGkta2V5LWhlcmU6eW91ci1idWRnZXQta2V5LWhlcmU=" \
  -d '{
    "product_id": "695c372f767df5adfd9bc870",
    "parameters": {
      "action": "compress",
      "archive_format": "zip"
    }
  }'
```

### Autonomous Agents

Autonomous agents can access this tool through AgentAddress credit balances or direct x402 payments. Use the Autonomous Agent API reference for endpoint shapes after choosing the access pattern below.

- Autonomous Agent API reference URL: https://www.agentpmt.com/docs/api-reference/autonomous-agents
- Autonomous Agent API reference markdown URL: https://www.agentpmt.com/docs/api-reference/autonomous-agents?format=agent-md
- Credit-Based Access Using AgentAddress: https://www.agentpmt.com/docs/autonomous-agents/credit-based-tool-usage-with-agentaddress
- AgentAddress is preferred for persistent file access, stored platform state, and maximum tool use ability across repeated calls.
- Direct x402 is for independent one-off tool calls that do not require shared files or stored platform state.
- Direct x402 public payments: USDC on Base, Arbitrum, Optimism, Polygon, and Avalanche.

### Schema

#### Parameters

- Schema type: actions

```json
{
  "actions": {
    "compress": {
      "description": "Create a ZIP or GZIP archive from input files. ZIP supports up to 500 files; GZIP compresses a single file. Input and output must be between 10MB and 100MB.",
      "properties": {
        "archive_format": {
          "type": "string",
          "description": "Archive format to use.",
          "required": true,
          "enum": [
            "zip",
            "gzip"
          ]
        },
        "files": {
          "type": "array",
          "description": "Files to include in a zip archive. Each object must have 'filename' (string) and 'content_base64' (string). Required for ZIP compression.",
          "required": false,
          "items": {
            "type": "object",
            "properties": {
              "filename": {
                "type": "string",
                "description": "Filename/path inside the archive.",
                "required": true
              },
              "content_base64": {
                "type": "string",
                "description": "Base64-encoded file content.",
                "required": true
              }
            }
          }
        },
        "input_base64": {
          "type": "string",
          "description": "Base64-encoded file content for GZIP compression.",
          "required": false
        },
        "filename": {
          "type": "string",
          "description": "Output archive filename (default: 'archive.zip' or 'archive.gz').",
          "required": false
        }
      }
    },
    "decompress": {
      "description": "Extract files from a ZIP or GZIP archive (10-100MB). Provide via file_id or input_base64. All extracted files are uploaded to cloud storage.",
      "properties": {
        "archive_format": {
          "type": "string",
          "description": "Archive format of the input.",
          "required": true,
          "enum": [
            "zip",
            "gzip"
          ]
        },
        "input_base64": {
          "type": "string",
          "description": "Base64-encoded archive to decompress.",
          "required": false
        },
        "file_id": {
          "type": "string",
          "description": "File ID of a previously stored archive to decompress.",
          "required": false
        },
        "filename": {
          "type": "string",
          "description": "Output filename for GZIP decompressed file (default: 'decompressed').",
          "required": false
        }
      }
    }
  },
  "properties": {}
}
```

### Usage Instructions

# Zip / Unzip - File Compression < 100MB

Compress and decompress large files (10MB–100MB) using ZIP or GZIP formats. Output files are uploaded to cloud storage and returned as downloadable signed URLs that expire after 7 days.

**Size range:** Input and output must be between 10MB and 100MB. For files under 10MB, use the standard archive compressor tool.

## Actions

### compress

Create a ZIP or GZIP archive from input files.

#### ZIP Compression

Bundle multiple files into a single ZIP archive.

**Required fields:**
- `action` (string): `"compress"`
- `format` (string): `"zip"`
- `files` (array): List of file objects, each containing:
  - `filename` (string): Name/path for the file inside the archive
  - `content_base64` (string): Base64-encoded file content

**Optional fields:**
- `filename` (string): Output archive filename (default: `"archive.zip"`)

**Limits:** Maximum 500 files per archive.

**Example:**
```json
{
  "action": "compress",
  "format": "zip",
  "files": [
    {
      "filename": "report.csv",
      "content_base64": "<base64-encoded content>"
    },
    {
      "filename": "data/records.json",
      "content_base64": "<base64-encoded content>"
    }
  ],
  "filename": "monthly_export.zip"
}
```

**Response includes:** `file_id`, `signed_url`, `signed_url_expires_in`, `size_bytes`

#### GZIP Compression

Compress a single file using GZIP.

**Required fields:**
- `action` (string): `"compress"`
- `format` (string): `"gzip"`
- `input_base64` (string): Base64-encoded file content to compress

**Optional fields:**
- `filename` (string): Output filename (default: `"archive.gz"`)

**Example:**
```json
{
  "action": "compress",
  "format": "gzip",
  "input_base64": "<base64-encoded content>",
  "filename": "database_dump.gz"
}
```

**Response includes:** `file_id`, `signed_url`, `signed_url_expires_in`, `size_bytes`

---

### decompress

Extract files from a ZIP or GZIP archive. Provide the archive via `file_id` (from a previous upload or tool output) or `input_base64`.

#### ZIP Decompression

Extract all files from a ZIP archive. Each extracted file is uploaded individually.

**Required fields:**
- `action` (string): `"decompress"`
- `format` (string): `"zip"`
- One of:
  - `file_id` (string): File ID of a previously stored archive
  - `input_base64` (string): Base64-encoded ZIP archive

**Example using file_id:**
```json
{
  "action": "decompress",
  "format": "zip",
  "file_id": "abc123def456"
}
```

**Example using base64:**
```json
{
  "action": "decompress",
  "format": "zip",
  "input_base64": "<base64-encoded zip archive>"
}
```

**Response includes:** `file_count` and a `files` array, each entry with `filename`, `size_bytes`, `file_id`, `signed_url`, `signed_url_expires_in`

#### GZIP Decompression

Decompress a single GZIP file.

**Required fields:**
- `action` (string): `"decompress"`
- `format` (string): `"gzip"`
- One of:
  - `file_id` (string): File ID of a previously stored archive
  - `input_base64` (string): Base64-encoded GZIP archive

**Optional fields:**
- `filename` (string): Output filename for the decompressed file (default: `"decompressed"`)

**Example:**
```json
{
  "action": "decompress",
  "format": "gzip",
  "file_id": "abc123def456",
  "filename": "restored_backup.sql"
}
```

**Response includes:** `file_id`, `signed_url`, `signed_url_expires_in`, `size_bytes`

---

## Common Workflows

1. **Archive and share large datasets:** Compress multiple CSV/JSON files into a single ZIP, then share the signed URL.
2. **Process uploaded archives:** Decompress a ZIP received via `file_id`, process individual files, then re-compress results.
3. **Compress database exports:** GZIP a single large SQL dump or log file for efficient storage.

## Important Notes

- **Size enforcement:** Both input and output must be between 10MB and 100MB. Files under 10MB should use the standard archive compressor. Files over 100MB must be split first.
- **File limit:** ZIP archives support up to 500 files.
- **Output storage:** Compressed/decompressed files are stored in cloud storage. Signed download URLs expire after 7 days.
- **Path safety:** Filenames in ZIP archives cannot use absolute paths or contain `..` traversal segments.
- **Format default:** If `format` is not specified, it defaults to `"zip"`.

### Frequently Asked Questions

#### How do I connect this tool to an external agent?

- Page URL: https://www.agentpmt.com/faq
- Markdown URL: https://www.agentpmt.com/faq?format=agent-md

You can install the local MCP server by opening a terminal and running:

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

This 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:

```
{
  "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](/docs/mcp-reference/connection) for more details.

#### How does an external agent use this tool?

- Page URL: https://www.agentpmt.com/faq
- Markdown URL: https://www.agentpmt.com/faq?format=agent-md

After the external agent is connected to an Agent Group that can use this tool, paste this prompt into the agent:

> Call the AgentPMT-Tool-Search-and-Execution tool with action 'get\_schema' and tool\_id 695c372f767df5adfd9bc870 ("Zip / Unzip - File Compression < 100MB"). Then call the same tool with action 'call\_tool', tool\_id 695c372f767df5adfd9bc870, 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

These products are automatically added when this product is enabled on the page UI.

#### File Management

Upload, list, retrieve, share, download, delete, and manage files stored in AgentPMT cloud storage. This product now owns the full file lifecycle, including signed upload URLs for files up to 10MB and for files over 10MB up to 100MB, budget-scoped file listing with preview URLs, fresh signed download URLs, direct base64 download for smaller files, password-protected sharing, metadata and tag updates, access-history inspection, and expiration extension. All file operations are scoped to the current budget for isolation and are designed to let one budget create persistent files that can be revisited across later agent runs.

- Page URL: https://www.agentpmt.com/marketplace/file-management
- Markdown URL: https://www.agentpmt.com/marketplace/file-management?format=agent-md