send_dm
Send a direct message on X to a specified user, but first confirm the recipient and text because messages cannot be recalled. The recipient must accept DMs from you or delivery fails.
Instructions
Send a direct message. No recall — confirm the recipient and text first.
The recipient must accept DMs from you (mutual follow, or open message
requests). Failures come back as kind: validation with X's reason.
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": {
"user_id": "<user_id>",
"text": "<text>"
},
"name": "send_dm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| user_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |