Send message
ghl_send_messageSend an outbound SMS or email to a contact by providing a valid contact ID and choosing the channel, with optional subject, HTML body, and sender number. Requires valid phone or email for the recipient.
Instructions
Send an outbound message to a contact via SMS or Email. For Email you must provide subject and html (or message as plain text). For SMS provide message. The contact must have a valid phone/email for the chosen channel.
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": {
"contactId": "<contactId>",
"type": "<type>"
},
"name": "ghl_send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | HTML email body (Email only). | |
| type | Yes | Channel to send through. | |
| message | No | Message body (required for SMS; plain-text body for Email). | |
| subject | No | Email subject (Email only). | |
| contactId | Yes | Recipient contact id. | |
| fromNumber | No | Override the sending phone number (SMS). |