send_dm
Send a direct message to any X user using their numeric ID. Resolve @handles with get_user first; your own ID is handled automatically.
Instructions
Send a direct message to a user by their numeric id (resolve a @handle with get_user first). Your own id is auto-resolved.
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": {
"recipient_id": "<recipient_id>",
"text": "<text>"
},
"name": "send_dm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Message body. | |
| recipient_id | Yes | Recipient numeric user id (rest_id). |