List mail
list_messagesList email messages in a mail folder, newest first, showing sender, subject, date, and ID. Use optional folder, search, and count to filter; bodies require get_message.
Instructions
List messages in a mail folder, newest first, as sender, subject, date and id. Bodies are not included; use get_message with an id to read one. Defaults to the inbox and to 10 messages.
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": "list_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | how many, 1 to 50, default 10 | |
| folder | No | inbox, drafts, sentitems or deleteditems, or an id from list_folders. A folder's display name will not work. Defaults to inbox. | |
| search | No | optional words to match |