What can you do with it?

The /zip command enables you to compress files into zip archives and extract contents from existing zip files. You can bundle multiple files together, reduce file sizes for easier sharing, extract compressed archives, and manage collections of files efficiently in your automations.

How to use it?

Basic Command Structure

/zip [action] [files] [options]

Parameters

Required:

  • action - The operation to perform (compress, extract, bundle, unzip)

Optional:

  • files - File names or patterns to process (defaults to finding uploaded files)
  • output name - Name for the created archive (defaults to archive.zip)
  • file pattern - Regex pattern to find files (e.g., ‘\.pdf$’ for PDFs)

Response Format

The command returns:

{
  "success": "true/false",
  "outputPath": "path to created archive or extracted files",
  "zipSize": "size of created archive in bytes",
  "extractedFiles": ["list of extracted file names"],
  "totalFiles": "count of processed files"
}

Examples

Basic Usage

/zip compress document.pdf into report.zip

Creates a zip archive containing a single PDF file with a specific output name.

Advanced Usage

/zip bundle multiple files
files: report.pdf, data.csv, chart.png
output name: project-files.zip

Bundles multiple files of different types into a single named archive for easy distribution.

Specific Use Case

/zip extract contents from uploaded.zip
output location: /tmp/output

Extracts all contents from an uploaded zip file to the default output directory for further processing.