send_x_dm
Send an X direct message destructive
Description
Send ONE direct message from the connected X account, either into an existing conversation (conversationId) or to a named account (participantId — the NUMERIC id, not an @handle; sending to someone with no existing thread starts one). THIS IS A PRIVATE MESSAGE TO A REAL PERSON AND IT CANNOT BE TAKEN BACK: show the user the exact wording and the exact recipient and get an explicit yes BEFORE calling. Never send the same message to several people — send one, to one named recipient. X may refuse a message to someone whose settings do not accept DMs from accounts they do not follow; that refusal comes from X, not from Hermoso. Costs credits per send. Needs X connected with direct-message access — an X account connected before DMs shipped must be reconnected once (Connectors > X).
Parameters
| Parameter | Type | Description |
|---|---|---|
textrequired | string | the message, exactly as it should be sent |
conversationId | string | reply into an existing conversation (from list_x_dms) |
participantId | string | the NUMERIC X account id to message — starts a conversation if there is none. list_x_dms returns it beside every message. |
idempotencyKey | string | pass the same key to make a retry safe — a timeout that already sent would otherwise send twice |
account | string | which connected account: its @handle or id from list_connector_accounts; needed only when several are connected |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/send_x_dm.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"send_x_dm","arguments":{"text":"<string>"}}}
CLI
hermoso call send_x_dm --json '{"text":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_x_dmsRead your X direct messages