create_folder
Create a new mailbox folder under the 'Folders/' namespace. Handles existing folders gracefully and provides clear error guidance for invalid paths.
Instructions
Create a new mailbox folder. Returns gracefully if the folder already exists. On Proton Mail, folders must be created under the "Folders/" namespace (e.g. "Folders/Receipts") — root-level paths are rejected by the server with an actionable error.
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": {
"path": "<path>"
},
"name": "create_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Folder path to create. On Proton, prefix with 'Folders/' (e.g. 'Folders/Receipts', 'Folders/Newsletters/Politics'). |