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
| Name | Type | Description |
|---|---|---|
id required | string | id parameter |
content | object | Plaintext message or reaction, sent unencrypted. Only accepted for a 1:1… |
conversation_token | string | Optional conversation token. |
encoded_message_create_event | string | Base64-encoded Thrift MessageCreateEvent containing encrypted message… |
encoded_message_event_signature | string | Base64-encoded Thrift MessageEventSignature for message verification. |
message_id required | string | Unique identifier for this message. |
xdk_version | string | Version 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:
{
"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:
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 ….