Skip to content

Interface: EmailToolOptions

Options accepted by emailTool.

optional id?: string

Override the tool id. Defaults to "send_email"; the chat UI’s approval gate keys off this id, so keep it unless you also teach the client about the new name.


optional requireApproval?: boolean | ((input, ctx?) => boolean | Promise<boolean>)

Mastra-native static or per-call approval predicate. Defaults to true. Use a function or Classifier-backed policy to allow low-risk calls while retaining human review for uncertain ones.