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.
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": {
"accountName": "<accountName>",
"mailboxName": "<mailboxName>"
},
"name": "create_mailbox"
}
}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 |