mc_chat_history
Retrieves the most recent chat messages from a running Minecraft instance, including system messages and command output. Optionally returns structured JSON components with formatting details.
Instructions
Get the most recent client-side chat messages — what the user has seen in the chat overlay, including system messages and command output.
Prefer this over walking mc.gui.getChat().allMessages from Groovy (which costs one bridge round-trip per field on each message). Returns {plain, addedTime} per message, newest-first. Set includeJson=true to also receive each message as a structured Component (preserves colors, styles, click events, hover events) — handy for parsing colored command output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages returned. Default 50. | |
| includeJson | No | Include the Component as JSON for each message. Default false. |