Skip to content

mail_list_folders

List the folders for one email account.

ParameterTypeRequiredDescription
account_idstringYesAccount ID. Use mail_list_accounts to find IDs.

A missing or non-string account_id returns JSON-RPC error -32602.

{ "tool": "mail_list_folders", "arguments": { "account_id": "acc1" } }

Read tool. Requires Mail enabled, a ready helper, a non-deny global tool policy, and Allow AI to read Mail. Failures return JSON-RPC error -32008 with one of mail_feature_disabled, mail_helper_unavailable, mail_global_policy_denied, or mail_read_consent_required. Full ordering: API Reference.