List mail addresses
mail_list_addressesResolve a name to its actual email addresses for reliable email searching. Avoid false matches from display names and find all addresses for a contact.
Instructions
Resolve a name or query into the concrete email addresses behind it.
Searching from: directly is unreliable: it also matches mail that merely mentions the name in a display name (e.g. a share notification like "Kathrin Pietsch (via Google Keep) <keep-shares@ google.com>"), and a name can belong to more than one real address or person. Call this tool first whenever you only have a name, then search or count using the address(es) it returns.
Args:
query: A notmuch query, typically a name fragment, e.g. 'kathrin'.
scope: Name of a configured scope to AND with query (see
mail_list_scopes). Defaults to the configured default scope.
output: 'sender' (addresses this query's messages were From),
'recipients' (addresses in To/Cc/Bcc), or 'count' (sender
addresses ranked by occurrence count, the way to find
someone's most-used address among several).
limit: Maximum number of addresses to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| scope | No | ||
| output | No | sender |