export
Save a Discord channel from the local archive to a jsonl or markdown file, with output sandboxed to the configured directory.
Instructions
Export a channel from the archive to a file (jsonl or markdown).
The output path is sandboxed to the export directory (DMINE_EXPORT_DIR, default ~/.config/dmine/exports/) — absolute paths and '..' traversal are rejected.
Args: channel: channel ID or full URL. format: "jsonl" or "md". since: only messages with id > this message ID. out: filename relative to the export dir (default .). Returns: Dict with path, message_count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | ||
| since | No | ||
| format | No | jsonl | |
| channel | Yes |