send_dm_to_group
Send a private direct message to a Twitter group conversation by providing the group ID and text. Optionally attach media. Avoid bulk calls to prevent account suspension.
Instructions
Send a direct message to a group conversation.
Note: Sends a PRIVATE message. Do not bulk-call. X has aggressive anti-spam on DMs and may suspend the account.
Args: group_id: The group conversation ID. text: Message content (required, must not be empty). media_id: Optional media ID to attach.
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": {
"group_id": "<group_id>",
"text": "<text>"
},
"name": "send_dm_to_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| group_id | Yes | ||
| media_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |