Send a LinkedIn connection request
linkedin_send_connection_requestSends a LinkedIn connection invitation to a member, with optional note. Requires preview before confirm to avoid accidental sends.
Instructions
Sends one connection invitation to a member, optionally with a note. Two-call handshake: without confirm: true this only reads the profile (name, headline, connection degree, and whether a Connect control exists at all) and returns a preview plus a previewToken — nothing is clicked and no invitation is sent. Re-issue the same call with confirm: true to send. profileUrl accepts a slug ("john-doe") or any LinkedIn profile URL. note is capped at 300 characters; free accounts are limited to 200 and LinkedIn silently truncates past its own limit, so notes over 200 characters are flagged. The request is REFUSED (with invalid_input, before any quota is spent) when the member is already a 1st-degree connection, when an invitation is already pending, or when LinkedIn offers no Connect control for that profile; the preview says so up front in that case. Counts against the daily connectionRequests cap. Under --dry-run the invitation dialog is driven against a local HTML fixture and the final Send click is skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| confirm | No | ||
| profileUrl | Yes | ||
| previewToken | No |