List messages in a folder
list_messagesList messages in one folder — id, subject, sender, received date and read state only, never message bodies. Use this to get the message IDs that move_messages needs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mailbox": "<mailbox>",
"folderId": "<folderId>"
},
"name": "list_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages to return (default 50, cap 200) | |
| search | No | Search within the folder: plain keywords, from:/subject: etc., exact phrases in double quotes. Don't escape anything. | |
| mailbox | Yes | Email address of the connected Outlook/Microsoft 365 mailbox to act on. Call list_authorized_mailboxes to see available options. | |
| folderId | Yes |