Send a LinkedIn direct message
linkedin_send_messageSend a LinkedIn direct message to a 1st-degree connection or existing conversation. Preview before sending, confirm to deliver, and refuse non-1st-degree contacts.
Instructions
Sends one direct message, either to a 1st-degree connection (pass a profile URL or slug) or into a conversation that already exists (pass the id from its /messaging/thread// URL). Two-call handshake: without confirm: true this only reads the profile or thread and returns a preview plus a previewToken, and nothing is typed or sent. Messaging is limited to 1st-degree connections — a profile at 2nd/3rd degree (or one whose degree cannot be read) is refused with not_connected, and InMail is never attempted. Counts against the daily messages cap. Under --dry-run everything runs against local fixtures and the final Send click is skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| confirm | No | ||
| previewToken | No | ||
| profileUrlOrConversationId | Yes |