Encrypt file
encrypt_fileEncrypts a single file with a passphrase into a new .axenc file beside it, leaving the plaintext intact; use the matching decrypt operation to reverse it.
Instructions
Encrypt one file into a new .axenc file next to it (axross's format). Use when: one file must be kept under a passphrase; decrypt_file reverses it. Instead: create_archive as 7z with a password for several files. Requires: --mcp-tools crypto. Behavior: only adds; the plaintext stays ('a.txt' -> 'a.txt.axenc', taken: 'a.txt (2).axenc'); each call adds a file. At most 1 GiB; new local files are mode 0600. Refuses secret files. Time limit: 5 min. Returns: {path, size, plaintext_size}.
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": {
"passphrase": "<passphrase>"
},
"name": "encrypt_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The file to encrypt, not a folder (absolute, or relative to the MCP root). Required unless path_b64 is given. | |
| backend | No | Backend id from list_backends; omit for the default. | |
| path_b64 | No | path as base64 of its raw bytes, for non-UTF-8 names; replaces path. | |
| passphrase | Yes | The passphrase; the key is derived with PBKDF2-SHA256 (200,000 iterations) for AES-256-GCM. Never logged or returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| size | Yes | ||
| plaintext_size | Yes |