create_mailbox
Create a new mailbox (folder) to organize emails, returning the new mailbox ID. Supply a leaf name and optional parent folder to control placement.
Instructions
Create a new mailbox (folder). Returns the new mailbox ID. The caller is responsible for validating the name is appropriate (length, character set, parent-folder allow-list) before calling — JMAP itself only enforces uniqueness within a parent.
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": {
"name": "<name>"
},
"name": "create_mailbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Leaf name of the new mailbox (not a full path). Must not contain "/". | |
| parentId | No | Parent mailbox ID. Pass null (or omit) to create at top level. |