Connect a social account
connect_accountConnect a social account to Postey, or re-authorise one whose credential has expired. Returns a link for the user to open in their browser; no credential is returned to the caller. When the platform needs connecting or reconnecting, the call fails with a URL-elicitation error (-32042) whose data carries the link. After the user finishes in the browser, a repeat call confirms the connection; repeat calls are safe. Credentials are per account, not per platform: one account's X can be RECONNECTION_REQUIRED while another's is fine, so account_id selects the account being fixed. Without account_id the call answers the fleet-wide question and, when accounts disagree, returns needs_reauth[] and healthy[] instead of a link, because the target account is ambiguous. Each blocker in postey://setup carries the account_id for this tool in its action.arguments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | Yes | ||
| account_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||