PGP keys
mailbox_pgp_keysManage PGP keys for encrypted and signed mail: check your own key status, list and look up public keys, import keys from text, files, or attachments, and export your public key to share.
Instructions
Manage PGP keys for encrypted and signed mail. status: is your private key set up (needed to decrypt and sign) and is your public key findable; list: public keys in the local keyring; lookup: find someone's key (local keyring, then their own Web Key Directory; keys.openpgp.org only with keyserver=true) and save it; import: add a key from armored text, a .asc file, or a message's key attachment (folder+uid); export_own: write your public key to a file to share. Encrypt/sign when sending with encrypt/sign on mailbox_send_message, mailbox_reply, mailbox_forward and mailbox_create_draft; mailbox_get_message decrypts and checks signatures automatically.
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": {
"action": "<action>"
},
"name": "mailbox_pgp_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | No | For import: UID of that message | |
| file | No | For import: path to a .asc/.gpg file; for export_own: where to write | |
| No | For lookup | ||
| action | Yes | ||
| folder | No | For import: folder of a message carrying a key attachment | |
| armored | No | For import: an armored public key block | |
| keyserver | No | For lookup: also ask keys.openpgp.org (shares the address with that service) | |
| response_format | No | 'markdown' for readable text (default), 'json' for complete structured data | markdown |