Decrypt file
decrypt_fileDecrypt an .axenc file with a passphrase and restore its plaintext output beside the original. Use it to recover files encrypted by axross when the correct passphrase is available.
Instructions
Decrypt an .axenc file into a new plaintext file next to it. Use when: restoring a file encrypted with axross. Instead: extract_archive for encrypted 7z or ZIP archives. Requires: --mcp-tools crypto. Behavior: only adds ('a.txt.axenc' -> 'a.txt', taken: 'a (2).txt'; a name without .axenc gets '.decrypted'); each call adds a file. A wrong passphrase or tampered file fails, leaving nothing. At most 1 GiB; new local files are mode 0600. Time limit: 5 min. Returns: {path, 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": "decrypt_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The .axenc file to decrypt (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 |