Write a LinkedIn message to a contact or in a conversation (two steps)
send_messageWrite a LinkedIn direct message to one of your own contacts, or reply in one of your own conversations (including people who are not leads), in two calls. Without confirm_token it only previews and changes nothing: it checks the account's limits, the do-not-contact list, whether the person has replied (refused unless allow_after_reply is true), whether they asked to stop (always refused), and today's cap, then returns the recipient, the exact text and a single-use confirm_token (valid 10 minutes, tied to this account, this contact or conversation, and this exact text). Show the person the preview and get a clear yes. With that confirm_token it queues the message. ZenMode's desktop app then sends it inside business hours, spaced at least 90 seconds to 3 minutes from the account's previous action, only while the app is open. Nothing is sent at the moment you call this. Give exactly one recipient: a contact_id from search_contacts, or a conversation_id from list_conversations (group conversations are refused).
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": {
"message": "<message>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The exact text, as the person approved it. | |
| contact_id | No | The contact id, from search_contacts or get_contact. Give this or conversation_id, not both. | |
| confirm_token | No | The confirm_token from the preview. Leave out to preview. | |
| conversation_id | No | A conversation id, from list_conversations or get_conversation, to reply in it. Give this or contact_id, not both. | |
| idempotency_key | No | Optional. A unique string you make up for this exact change (8 to 128 letters, digits, - _ . :). If the call is repeated with the same key and the same arguments within 24 hours, nothing happens twice and the first result is returned again. Use a fresh key for every new change. | |
| allow_after_reply | No | true only when the person is deliberately answering someone who replied. Default false. |