create_mailbox
Ensure a mailbox exists in a Mail.app account, creating it if needed and reusing existing folders; supports nesting via parent mailbox paths and returns the full path with created/alreadyExisted flags.
Instructions
Ensure a mailbox (folder) exists in a Mail.app account. For nesting, resolve the parent and use its full slash path at the account. Returns the full path read back from Mail and explicit created/alreadyExisted booleans; an existing mailbox is reused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountName | Yes | The name of the account to create the mailbox in | |
| mailboxName | Yes | The child name to create, or a full slash path when parentMailboxName is omitted | |
| parentMailboxName | No | An existing parent mailbox name or full path for nesting; omit to create directly at the account |