mail_list
Newest messages first. Default is every inbox combined; pass account (alias or address) for one mailbox.
folder: inbox (default), sent, drafts, trash, junk, archive, other, all, or an exact folder name.
before: a message id, to page to older mail. unread: only unread mail. watched: only conversations on Waiting,
in any folder: what the user is waiting to hear back about, kept an eye on (thread_watch) or added by Mojo.
query_text: full-text search instead, across all mailboxes (or account's), newest first; Trash and Junk are left
out unless folder names them. Words are ANDed; put a phrase in double quotes. Narrow a word to one field with
from:, to:, subject:, body: or file: (attachment name), e.g. from:acme invoice "order form". It finds words in
what attached files say too: such a result's snippet starts with the file and where in it, "(invoice.pdf, p. 2)". A
Mojobase email <message-id> the user copied from the app finds that email, in any folder. before, unread and
watched are for the list without query_text. A conversation the user snoozed has snoozed_until: put off until
then, when it comes back to their inbox, not done.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mail_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| before | No | ||
| folder | No | ||
| unread | No | ||
| account | No | ||
| watched | No | ||
| query_text | No |