send_dm
Send a private direct message to any Twitter user by their screen name. Include text and optionally attach media.
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 |
|---|---|---|---|
| screen_name | Yes | ||
| text | Yes | ||
| media_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |