get_messages
Read text messages from a specified iMessage chat, with optional pagination and attachment paths or extracted attachment text. Returns messages only; it does not send or modify anything.
Instructions
读取指定聊天中的短信,并可把附件路径或附件文字一起返回。只读,不会发送或修改任何信息。
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": {
"chat_identifier": "<chat_identifier>"
},
"name": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 最多返回多少条短信。 | |
| offset | No | 分页偏移量。 | |
| newest_first | No | 是否按最新短信优先排序。 | |
| chat_identifier | Yes | 聊天 ID、chat_identifier、guid、显示名称或群聊 room_name。 | |
| include_attachments | No | 是否在每条短信下附带附件元数据和本机路径。 | |
| attachment_max_bytes | No | 每个附件最多返回多少字节的提取文本。 | |
| include_attachment_content | No | 是否尝试把附件中的文字内容一起提取并返回。 |