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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mc_chat_history"
}
}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. |