← All toolsFiles & Documentsfile_managerAll editions

COMPRESS_FILES

Create a ZIP or TAR.GZ archive from files/directories.

Parameters

NameTypeRequiredDescription
pathsstringyesComma-separated list of file/directory paths to include
outputstringyesOutput archive path (e.g., /tmp/backup.zip)
formatstring'zip' (default) or 'tar.gz'

How to use it

You normally trigger this by describing what you want in chat — the agent selects COMPRESS_FILES automatically. For example:

Try saying
“use file manager to compress …”

In a workflow

As a step in a multi-step workflow DAG:

json
{
  "id": "s1",
  "agent": "file_manager",
  "action": "COMPRESS_FILES",
  "args": {
    "paths": "/Users/me/Documents/file.txt",
    "output": "…",
    "format": "…"
  },
  "depends_on": [],
  "outputs": []
}

Direct call

For scripting, call it directly via POST /execute_tool. Every tool returns { success, message, data }.

bash
curl -X POST http://127.0.0.1:8000/execute_tool \
  -H "Content-Type: application/json" \
  -d '{"tool_name":"COMPRESS_FILES","args":{"paths":"/Users/me/Documents/file.txt","output":"…","format":"…"}}'

Part of the file_manager plugin. Browse the full Plugin & Tool Catalog or the relevant feature guide.