List messages
list_messagesIndividual messages across every thread, newest first. Pass with_email to read one conversation (which returns oldest-first, so it reads in order). Voice notes, photos, videos and files come back as attachment with a description — their text is never message content. A voice note may carry attachment.transcript when the business had voice messages written out: it is AUTOMATIC and can mishear a word, so quote it as what the recording seems to say, never as the person's exact words; no transcript means nobody had it written out, not that the note was silent. Messages the user deleted from their own view are not returned.
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 |
|---|---|---|---|
| q | No | Only text messages containing this phrase. | |
| type | No | Filter by message type: text, image, audio, video, file, system. | |
| limit | No | Maximum rows to return (1-200, default 50). | |
| since | No | ISO timestamp — only messages after this. | |
| until | No | ISO timestamp — only messages before this. | |
| offset | No | Rows to skip, for paging. | |
| thread | No | Thread name, usually the unit — see `thread` on list_conversations. | |
| chat_type | No | e.g. tenant, service, owner, system. | |
| with_email | No | Only messages exchanged with this person. | |
| unread_only | No | Only messages the user has not read. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why the result was truncated, when it was. | |
| count | Yes | How many rows are in `results`. | |
| results | Yes | The rows. | |
| truncated | No | Present and true when the result was too large to return in full. Treat it as a partial answer. | |
| total_available | No | How many rows existed before truncation. |