chat-send
Send a message to the Foundry VTT chat log. Use for narration, NPC dialogue, combat descriptions, and out-of-character communication with the player. Supports HTML formatting. Pass actorId to speak as an NPC (shows their portrait). Use flavor for context subtitles like "Narration", "The Tavern", "Combat". Players watching Foundry only see what is posted here. You can insert document links in content using @UUID[Actor.actorId]{Name}, @UUID[Item.itemId]{Sword}, @UUID[JournalEntry.journalId]{Quest} — Foundry renders them as clickable links.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Message style: "ic" = in character (NPC speech), "ooc" = out of character (meta), "emote" = action description. | |
| flavor | No | Subheading above the message. E.g. "Narration", "The Rusty Dragon Inn", "Combat". | |
| actorId | No | Actor ID to speak as — shows their portrait and uses their name. Use for NPC dialogue. | |
| content | Yes | Message content. Supports HTML: <p>, <strong>, <em>, <blockquote>, <ul>, <li>. Use @UUID[DocumentType.id]{Label} for clickable document links. Must not be empty. | |
| speaker | No | Display name of the sender. Defaults to "Gamemaster". Overridden by actorId if both provided. | |
| whisperTo | No | User IDs to whisper to. Message visible only to these users and GM. |