create_folder
Create a new top-level folder in an Apple Mail account to organize and file emails. Idempotent—returns success if the folder already exists.
Instructions
Create a new top-level mailbox/folder inside an account. Idempotent — reports success if the folder already exists. Pair with move_matching to file mail by rule.
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": {
"account": "<account>",
"name": "<name>"
},
"name": "create_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the new folder, e.g. "Newsletters". | |
| account | Yes | Account to create the folder in, e.g. "iCloud". Use list_folders to see accounts. |