send_dm
Send a private direct message to a Twitter user by screen name, with optional media attachment. Avoid bulk messaging to prevent account suspension.
Instructions
Send a direct message to a user by screen name.
Note: Sends a PRIVATE message. Do not bulk-call. X has aggressive anti-spam on DMs and may suspend the account.
Args: screen_name: Twitter username (without @) to send the DM to. text: Message content (required, must not be empty). media_id: Optional media ID to attach.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| media_id | No | ||
| screen_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |