Send Message
send_messageSend a new LinkedIn message to a recipient from their profile when direct messaging is available; use for initial outreach, not replying to existing threads.
Instructions
Compose and send a new message to a LinkedIn user.
Profile-based targeting opens LinkedIn's compose flow. It is not a safe reply path for an existing recruiter/InMail or messaging thread: it may create a separate DM even after you inspect that thread with get_conversation or search_conversations. Those tools only read an existing thread; they do not send a reply. Until a thread-targeted send path is available, do not treat profile-based send_message as a reply.
The recipient must be directly messageable from the profile page. If
LinkedIn does not expose a normal Message action, use connect_with_person
first, then retry send_message only after the connection request is
accepted. A status of enter_to_send_enabled means the account
has LinkedIn's "Press Enter to Send" preference on, which hides the Send
button; relay the returned instructions to the user, who switches it to
"Click Send to send" before retrying. The dry run (confirm_send False)
reports it too. Recipient authorization comes from validating one
recipient-specific Message action carrying the target URN, then following
its browser navigation and pinning the exact final route. Visible profile
links or recipient URNs in the composer are optional corroboration; any
contradiction fails closed. No Voyager or other private API is used. This
is a write operation when confirm_send is True.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Single-line message text to send. C0 control characters and DEL are rejected, including CR, LF, and tab. | |
| profile_urn | No | Optional profile URN (e.g. ACoAAB...) to verify against the URN exposed by the loaded profile before opening its Message action. It never bypasses recipient verification. Obtain via get_person_profile. Note: inbox may not always show all messages; use search_conversations as a fallback. | |
| confirm_send | Yes | Must be True to send the message | |
| linkedin_username | Yes | LinkedIn username of the recipient; a full profile URL is accepted too |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||