send_direct_message
Send a direct message to any Matrix user. Automatically finds or creates the direct message room and delivers text, HTML, or markdown messages.
Instructions
Send a direct message to a user. Finds existing DM room or creates one automatically.
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_direct_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | User ID to message (e.g. @user:matrix.org) | |
| text | Yes | Message body | |
| format | No | Message format: 'text' (default), 'html', or 'markdown' | text |