send_message
Apex only. Send a LinkedIn message to a person as yourself. BEFORE you DM, call get_lead_activity on the recipient — the single biggest signal is whether you already have a history (they engaged your content, checked a resource you sent, you’ve DM’d/replied/connected before). Use that to open specifically, and skip anyone flagged do_not_engage. By default sends a direct message, which requires you to be connected (1st-degree). To reach someone you are NOT connected to, set as_inmail: true to send an InMail, which spends one of your LinkedIn plan’s paid InMail credits (checked first; refused if you have none). Either way it counts against your daily DM limit (the SAME budget your automations use). Archived leads are do-not-engage: the send is hard-refused at the chokepoint (same block as the in-app Drawer Agent and Loadout runs). Pass a provider id ("ACo…") or a public profile slug as the recipient. Returns the channel used and your remaining DM budget. Check your InMail credit balance via manage_activity_limits (action:"get" → channels.inmail).
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": {
"recipient": "<recipient>",
"text": "<text>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The message body to send. | |
| act_as | No | APEX+ or admin act_as (optional): operate this tool AS one of your managed profiles — pass that profile's LeadShark account email (see list_profiles). Requires an active delegation from the profile owner plus an APEX+ plan or admin act_as enabled by LeadShark (which runs on the profile's own plan); anything else is refused with a reason, never silently redirected. The action runs under the managed profile's own budgets, approval queue, and action log. With a Team key, act_as is required on every call and must be one of the key's accounts (list_profiles); the call must also be within the permission groups the key has on that account, or it's refused with permission_missing. Hourly/daily limits are that profile's own. | |
| subject | No | Optional subject line, used only for InMail (as_inmail: true). | |
| as_inmail | No | Send as an InMail (reaches a non-connection; spends one paid InMail credit). Default false (a regular DM to a 1st-degree connection). | |
| recipient | Yes | Who to message: a provider id ("ACo…") or a LinkedIn public profile slug. |