send_to_user
Search for a user by name, create a direct chat, and send a text message in a single step.
Instructions
[User Identity] Search user by name → create P2P chat → send text message. All in one step.
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_name": "<user_name>",
"text": "<text>"
},
"name": "send_to_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_name | Yes | Recipient name (Chinese or English) | |
| text | Yes | Message text | |
| ats | No | Optional @-mentions. Same format as send_as_user.ats: [{userId, name}]. Text must contain the `@<name>` marker for each entry. |