Create archive
create_archiveBundle or compress files and folders from a directory into a single archive, optionally password-protected 7z. Use it to package selected entries in place for storage or transfer.
Instructions
Create a new archive from entries of one folder, in that folder. Use when: bundling or compressing files, optionally with a 7z password. Instead: list_archive_formats for formats; extract_archive to unpack; encrypt_file for one file. Requires: --mcp-tools archive. Behavior: works on any backend. Only adds: a taken name gets ' (2)' ('bundle (2).zip'); each call adds an archive. Folders go in recursively, hidden files too, up to 200,000 entries, no size cap (extract_archive refuses over 10,000 members or 1 GiB). Symlinks and secret files go to skipped. Time limit: 30 min. Returns: {path, format, files, folders, bytes_in, bytes_out, skipped, encrypted}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"archive_name": "<archive_name>"
},
"name": "create_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The folder holding the entries (absolute, or relative to the MCP root); the archive is created in it. Required unless path_b64 is given. | |
| level | No | Compression level: fast (larger, quicker), normal or best (smallest, slowest). | normal |
| names | No | Names of files or folders directly inside path, e.g. ['report.pdf', 'images']; no path separators, no repeats. Required unless names_b64 is given. | |
| format | No | Archive format; list_archive_formats tells which are available here. gz, zst, xz and bz2 compress exactly one file. | zip |
| backend | No | Backend id from list_backends; omit for the default. | |
| password | No | 7z only: encrypt the archive with AES-256 using this password; any other format fails with one. Never logged or returned. | |
| path_b64 | No | path as base64 of its raw bytes, for non-UTF-8 names; replaces path. | |
| names_b64 | No | names as base64 of each name's raw bytes, for non-UTF-8 names; replaces names. | |
| archive_name | Yes | Archive file name without a folder, e.g. 'bundle'; the format's suffix (.zip, .tar.gz, ...) is added when missing. | |
| encrypt_names | No | 7z with a password: also encrypt the file list, so names are hidden without the password. Ignored otherwise. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| files | Yes | ||
| format | Yes | ||
| folders | Yes | ||
| skipped | Yes | ||
| bytes_in | Yes | ||
| bytes_out | Yes | ||
| encrypted | Yes |