get_chat_messages
Fetches messages from one LINE conversation, decrypts E2EE text when keys exist, and pages older messages with a cursor for chat history review and media lookup.
Instructions
Fetch messages from one LINE conversation. Text is E2EE-decrypted when keys are available; each message has fromName (resolved sender), a mediaType flag (image/video/audio/file) plus message_id for get_message_media, and mentions (LINE's raw contentMetadata.MENTION, or null — a literal "@name" in text is not itself a mention). Without before, returns the most recent count. With before (id/delivered_time of the oldest message already seen), returns one older page — repeat to page further back.
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_id": "<chat_id>"
},
"name": "get_chat_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Maximum number of messages to return (default 50). | |
| before | No | Cursor to fetch messages older than this point. Use the id and/or delivered_time of the oldest message already seen. | |
| chat_id | Yes | LINE chat/group/room MID, as returned by list_conversations. |