Skip to main content
Glama

send-chat

Send in-game chat messages using a Minecraft MCP server powered by the Mineflayer API. Ideal for automating communication or commands within the game environment.

Instructions

Send a chat message in-game

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesMessage to send in chat

Implementation Reference

  • The async handler function that executes the 'send-chat' tool logic: retrieves the bot instance, sends the chat message using bot.chat(message), and returns a confirmation response.
    async ({ message }) => { const bot = getBot(); bot.chat(message); return factory.createResponse(`Sent message: "${message}"`); }
  • Zod schema defining the input parameter 'message' as a string for the 'send-chat' tool.
    { message: z.string().describe("Message to send in chat") },
  • Registration of the 'send-chat' tool with name, description, input schema, and handler function using factory.registerTool.
    factory.registerTool( "send-chat", "Send a chat message in-game", { message: z.string().describe("Message to send in chat") }, async ({ message }) => { const bot = getBot(); bot.chat(message); return factory.createResponse(`Sent message: "${message}"`); } );

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yuniko-software/minecraft-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server