st.withdrawConnectionRequest

This action allows you to withdraw the connection request sent to a person.

Constraints

⏺️ Root Start: allowed, when personUrl parameter is provided.

⬆️ Parent Actions: st.openPersonPage.

⬇️ Child Actions: N/A.

Parameters

{
  "actionType": "st.withdrawConnectionRequest",
  "label": "person1",
  "personUrl": "https://www.linkedin.com/in/person1",
  "unfollow": true
}

In AI assistants, the MCP server runs this action as the withdraw_connection_request tool.

  • label (optional) – custom label for tracking this action in workflow completion.
  • personUrl (required for root start, forbidden for parent start) – public or hashed LinkedIn URL of the person you want to withdraw the connection request from.
  • unfollow (optional) – boolean indicating whether you want to unfollow the person when withdrawing the request. The default value is false: if you omit it, the request is withdrawn and you keep following the person. The CLI is the exception – linkedin connection withdraw sends true unless you pass --no-unfollow.

Result options

  1. Successful connection request withdrawal:
json
{
  "actionType": "st.withdrawConnectionRequest",
  "success": true,
  "label": "person1"
}
  • label – included only if specified in the action parameters.
  1. Failed connection request withdrawal:
json
{
  "actionType": "st.withdrawConnectionRequest",
  "label": "person1",
  "success": false,
  "error": {
    "type": "notPending",
    "message": "There is no pending connection request to this person."
  }
}
  • label – included only if specified in the action parameters.
  • error.type – enum with the following possible values:
    • personNotFound – provided URL is not an existing LinkedIn person.
    • selfProfileNotAllowed – action cannot be performed on your own profile.
    • notPending – there is no pending connection request to this person.