export_messages
Export locally stored messages as JSON or CSV for archiving, analysis, or migration. Filter by recipient or since timestamp to restrict output.
Instructions
Export locally stored messages as a JSON or CSV string for archiving, analysis, or migration. Returns all messages in the local store by default; use recipient to restrict to one conversation. Use since (ISO 8601 datetime) to export only messages after a given point in time. JSON output preserves all fields (sender, timestamp, body, group_id); CSV output is flat and suitable for spreadsheets. Only messages already in the local store are included — messages never received on this device are absent. Use when you need a full or filtered dump of conversation history in machine-readable form. Do NOT use to read individual messages interactively — use get_conversation or search_messages for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format (default: json) | |
| recipient | No | Export only this conversation (phone number or group ID) | |
| since | No | Only include messages at or after this ISO datetime |