Messages
get_messagesList message summaries (correspondent, subject, date, read state) without opening them; use get_message_content for the text. On legacy accounts the folder choice changes the view Librus remembers.
Instructions
List message summaries (correspondent, subject, date, read state) without opening them; use get_message_content for the text. On legacy accounts the folder choice changes the view Librus remembers. Modern accounts can list the archive or filter current mail by correspondent or unread_only; archives cannot be filtered. Repeat the same filters with cursor.
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": {
"account_alias": "<account_alias>"
},
"name": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum items in this page. | |
| cursor | No | next_cursor from the previous page; omit for the first page. | |
| folder | No | received or sent mail. | received |
| archived | No | Modern only: list earlier years' archive. | |
| max_pages | No | Maximum Librus pages fetched by this call. | |
| page_size | No | Messages per Librus page; legacy accepts only 50. | |
| unread_only | No | Modern only: unread received mail only. | |
| account_alias | Yes | Login alias from list_accounts. | |
| correspondent | No | Modern only: a reference from get_message_correspondents. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| folder | Yes | ||
| backend | Yes | ||
| archived | No | ||
| identity | Yes | ||
| pagination | Yes | ||
| observation | Yes | ||
| unread_only | No | ||
| correspondent | No | ||
| archiving_in_progress | No |