mail_create_folder
Create a new empty iCloud Mail folder to file messages when no suitable folder exists. Use the exact, case-sensitive name; existing folders are not duplicated.
Instructions
Create a new, empty mail folder in the owner's iCloud mailbox.
Use when: the owner wants a place to file mail and mail_list_folders shows no suitable folder. Not for renaming (use mail_update_folder), for filing messages (create the folder, then use mail_move_messages or mail_run_bulk_action), or for removing one (use mail_delete_folder). Parameters: name is used exactly as given and is case-sensitive; 'Parent/Child' creates a subfolder where the server supports nesting. Pass the plain name, not an alias such as Sent. Behavior: creates nothing when a folder with that exact name already exists (the call succeeds with created=false, so repeating it is safe). Moves no mail. The folder appears on the owner's devices after sync. Returns: {created, name}; created=false with a note when it already existed. A name the server rejects raises an error naming it; check it against mail_list_folders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the new folder. |