Home / Servers / X (Twitter) API / send_chat_message

Send Chat Message

An MCP tool from the X (Twitter) API server, hosted on mcp.hjlabs.in.

Send Chat Message Sends a message or reaction to a specific Chat conversation. Send encoded_message_create_event, an end-to-end encrypted event built with the Chat XDK. content, a plaintext message or reaction sent… [POST /2/chat/conversations/{id}/messages]

Name on the gateway: x_api__send_chat_message · may change things.

Parameters

NameTypeDescription
id requiredstringid parameter
contentobjectPlaintext message or reaction, sent unencrypted. Only accepted for a 1:1…
conversation_tokenstringOptional conversation token.
encoded_message_create_eventstringBase64-encoded Thrift MessageCreateEvent containing encrypted message…
encoded_message_event_signaturestringBase64-encoded Thrift MessageEventSignature for message verification.
message_id requiredstringUnique identifier for this message.
xdk_versionstringVersion of the Chat XDK that produced the payload.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "x_api__send_chat_message",
  "arguments": {
    "id": "…",
    "message_id": "…"
  }
}

Or connect the X (Twitter) API server directly, which lists 258 tools including this one:

Run in your terminal
claude mcp add --transport http hj-x-api https://mcp.hjlabs.in/mcp/x-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the send chat message tool with id set to ….

More from X (Twitter) API