set_agent_mailboxes
Set which of the tenant's mailboxes belong to an agent and which one is its default (admins and planners only). Required: agent_id, email_account_ids (ids from list_mailboxes; an empty list clears the setting). Optional: standard = one of email_account_ids (with exactly one id it is the default by itself). Afterwards fetch_inbox, list_emails and the mail-folder tools use the default when this agent acts and no email_account_id is given, list_mailboxes shows only these mailboxes to the agent, and get_agent_bootstrap lists them. It only narrows — it grants no read access the caller does not already have.
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": {
"agent_id": "<agent_id>",
"email_account_ids": "<email_account_ids>"
},
"name": "set_agent_mailboxes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grund | No | Why (goes into the optimisation register, list_optimierungen) | |
| agent_id | Yes | Agent id from list_agents | |
| standard | No | Default mailbox id, must be in email_account_ids | |
| email_account_ids | Yes | Mailbox ids from list_mailboxes; [] clears |