archive_create
Pack files and folders into a new ZIP, 7z, or TAR archive on the server, with optional password protection; refuses to overwrite an existing destination.
Instructions
Pack files and folders into a NEW archive on the server: zip, 7z or the TAR family (format, or from dest's extension), optionally with a password (zip, 7z). The bytes never travel over MCP - share dest to hand it out. Refuses an existing dest (TARGET_EXISTS). Needs files.download on every source. An encrypted file does not leave its encrypted folder inside an archive (E2E_BOUNDARY); into an encrypted folder only with allow_plaintext. It answers 202 with the queued operation ({op: {id, …}}): follow it with op_get {id} until its status is ok (or partial, failed, cancelled), stop it with op_cancel.
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": {
"sources": "<sources>",
"dest": "<dest>"
},
"name": "archive_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest | Yes | adapter:// path of the archive to create; it must not exist yet | |
| format | No | zip, 7z, tar, tar.gz, tar.bz2 or tar.xz (default: from dest's extension, else the server's default); the administrator may allow fewer | |
| sources | Yes | adapter:// paths of the files and folders to pack (folders recurse) | |
| password | No | protect a zip or 7z with this password; it goes to the job in memory only and is never logged | |
| compression | No | compression level 0-9 | |
| allow_plaintext | No | only for a dest inside an end-to-end encrypted folder: store the archive there UNENCRYPTED on purpose | |
| encrypt_filenames | No | 7z with a password: hide the member names too |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | the operation's JSON answer - the body its REST twin under /api/ai answers (an object) | |
| status | Yes |