x_dm_send
Send an X (Twitter) direct message to one user or existing conversation, creating a 1:1 conversation when necessary. Enforces recipient follow/DM restrictions and daily send limits.
Instructions
Send an X (Twitter) direct message to exactly one target: an existing conversation (conversation_id) or a user (participant), creating the 1:1 conversation if needed. Fails with a forbidden error when the recipient does not follow the sender, has DMs closed, or blocked them. Subject to the platform cap of ~1,440 DMs per 24 hours. Requires user-context auth; never enabled by any policy preset — an operator must explicitly opt in. (disabled by policy read-only)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Message text to send (1-10,000 characters). | |
| participant | No | Target user for a 1:1 DM: numeric id, handle, or @handle. | |
| conversation_id | No | Target conversation id (numeric, or two numeric ids joined by "-"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes | ||
| summary | No |