Read LINE messages
get_messagesReads the newest messages of one LINE chat, a date window, or messages around a known id, returning a JSON result with images. Serves archived messages first for faster, offline-capable reads.
Instructions
Read the newest messages of one LINE chat, oldest first.
Pass after and before to read a time window instead of the newest
slice: a bare date means local midnight, and before includes the whole
day. The archive answers first, so a window that was read before is
cheap and works offline; LINE is only paged back when the archive
cannot fill limit.
Pass around to read the messages around one id, which is how a
search hit turns into its conversation. That answer comes from the
archive only, so the id must have been read before; context sets how
many messages appear on each side and limit is ignored. around
cannot be combined with after or before.
Returns a JSON result plus the images those messages contain. Messages
are decrypted when the saved session holds the Letter Sealing keys; a
sealed message that cannot be opened has sealed: true and no text.
Every message read is stored in a local SQLite archive, and every image
is saved under the media directory before it is attached, so the next
call is cheaper and still works when LINE is unreachable.
Pass include_images=false to keep the image message rows but attach
no image blocks. max_images defaults to 20 and caps the attachments;
max_image_bytes adds an optional byte cap. The ids that were not
attached appear in images_skipped. Pass max_images=null to remove
the count cap for one call.
Check partial: true means the page budget ran out before limit, so
older messages were not reached. Check stale: true means LINE could
not be reached and the result came from the local archive.
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": "<chat>"
},
"name": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | Chat mid, or part of the chat name. Use list_chats to find it. | |
| after | No | Only messages on or after this date (`YYYY-MM-DD`) or ISO timestamp. | |
| limit | No | How many messages, newest ones. | |
| around | No | A message id from an earlier result: read the messages around it instead of the newest ones. Answered from the archive. | |
| before | No | Only messages on or before this date (`YYYY-MM-DD`). A bare date covers the whole day. | |
| context | No | Messages on each side when `around` is set. | |
| max_images | No | Maximum image attachments for this call. | |
| include_images | No | Attach image content blocks. The image message rows are still returned when false. | |
| max_image_bytes | No | Do not attach an image larger than this many bytes. |