Create an approved folder
create_folderCreate a Proton Mail folder from a user-approved preview token, ensuring the exact folder name is confirmed before creation.
Instructions
Create the folder an approved preview names; only call after explicit approval of its preview.
Use it only with a token from preview_action(action="create_folder") that the user approved: the token, not an argument, names the folder. Unless the operator turned it off, the user then confirms the exact change in the client's form; a declined form retires the token.
Creates one folder and never deletes or renames one; removing a created folder is manual in the Proton app. If the folder now exists, it succeeds without consuming the token, so a repeat changes nothing.
Returns log_id for the logged creation attempt, including an already-existing folder, with name, created, exists, partial and token_consumed. partial=true, with error, means the call was interrupted and the folder may exist: check list_actions and the Proton app first. An expired, used or unknown token refuses: preview again.
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": {
"token": "<token>"
},
"name": "create_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Single-use token from the preview the user approved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||