send_direct_message
Send direct messages to Twitter users programmatically by providing their user ID or username and the message text.
Instructions
Send Twitter direct messages programmatically via API
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "send_direct_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| recipient_id | No | Recipient user id. Provide either this or `recipient_username`. | |
| recipient_username | No | Recipient username (without @). Provide either this or `recipient_id`. |