hermosodocs

send_x_dm

Send an X direct message destructive

Area: X DIRECT MESSAGES · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
textrequiredstringthe message, exactly as it should be sent
conversationIdstringreply into an existing conversation (from list_x_dms)
participantIdstringthe NUMERIC X account id to message — starts a conversation if there is none. list_x_dms returns it beside every message.
idempotencyKeystringpass the same key to make a retry safe — a timeout that already sent would otherwise send twice
accountstringwhich 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.

All 728 Publishing & scheduling tools · tools.json