Create Folder
create_folderCreate a new email folder or label by providing a folder path (e.g., Folders/Archive). Required before moving messages to that label.
Instructions
Create a new email folder or label. Use Folders/Name for custom folders, Labels/Name for labels. Must exist before using move_to_label.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Optional account ID to route this call to (multi-account configs). Omit to use the active account. Configured account IDs are listed in the settings UI (Accounts tab). | |
| folderName | Yes | Folder path to create (e.g. Folders/Archive, Labels/Work) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| success | Yes | ||
| messageId | No |