chat_runMethod
Execute a method on a WhatsApp chat and return the result. Specify the chat ID, method name, and optional options to get the outcome.
Instructions
[Chat] Execute a method on the chat. Execute a method on the chat and return the result
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": {
"sessionId": "<sessionId>"
},
"name": "chat_runMethod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | No | The chat id which contains the message | |
| method | No | The name of the method to execute | |
| options | No | The options to pass to the method | |
| sessionId | Yes | Unique identifier for the session (alphanumeric and - allowed) |