export-chat-log
Export Foundry VTT chat logs to local files or WebDAV with public URLs. Supports markdown, HTML, JSON, or plaintext formats. Prevents accidental overwrites unless explicitly allowed.
Instructions
Export the chat transcript to a LOCAL absolute file AND/OR a WebDAV Data/ path (returns its public URL). Formats: markdown | html | json | plaintext. Refuses to overwrite an existing file at either destination unless overwrite:true. WebDAV needs MOLTEN_WEBDAV_PASSWORD.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Export only the most recent N messages (omit for the whole log). | |
| format | No | Transcript format. markdown/plaintext strip HTML (roll totals kept); html keeps raw message markup (unstyled, not the rendered card); json is the structured records. | markdown |
| localPath | No | Absolute local destination path (parent dirs created). At least one destination required. | |
| overwrite | No | Allow overwriting an existing file at either destination. | |
| remotePath | No | Destination relative to the Foundry Data/ root for the WebDAV copy, e.g. "worlds/your-world/exports/session-3.md". Returns a public HTTPS URL. Requires MOLTEN_WEBDAV_PASSWORD. | |
| sinceTimestamp | No | Only messages at/after this ms-epoch timestamp. |