create_p2p_chat
Create or retrieve a direct message chat with a user by their ID. Returns the numeric chat ID for further messaging.
Instructions
[User Identity] Create or get a P2P (direct message) chat. Returns numeric chat_id.
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>"
},
"name": "create_p2p_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Target user ID from search_contacts |