# Hermoso: send_x_dm: Send an X direct message · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/send_x_dm/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / send_x_dm

# `send_x_dm`

Send an X direct message destructive

Area: X DIRECT MESSAGES · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

Parameter Type Description

`text` required `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](https://hermoso.ai/docs/credits/).

## Related tools

- [list_x_dms](https://hermoso.ai/docs/reference/publish/list_x_dms/) Read your X direct messages

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
