Account: Connect
account_connectGet a secure connection (or reconnection) link for one of the user's provider accounts: LinkedIn, WhatsApp, Instagram, Facebook/Messenger (including selected Pages), Telegram, Google/Gmail, Microsoft/Outlook or generic IMAP email. Use when the user asks to connect/add/reconnect an account, or after a connect_account/reconnect_account result. Pass account_id only to re-authenticate an existing account (from list_connected_accounts), including a healthy Facebook account needing additional Pages or a healthy LinkedIn account needing Company Pages or a different premium product. Facebook Hosted Auth offers Messenger and administered Pages for explicit selection. LinkedIn Hosted Auth offers Classic, Company Pages, Sales Navigator and Recruiter when available; the user must select them. Sales Navigator and Recruiter cannot be active together on one connection. Afterward use linkedin_list_managed_company_pages and linkedin_list_inboxes to inspect accessible pages/products. WhatsApp and Telegram also support QR connection through whatsapp_connect / telegram_connect; account_connect returns the browser link. Never ask the user for provider passwords; the link opens the provider's own authentication.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"provider": "<provider>"
},
"name": "account_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | Provider to connect. Use 'email' to let the user pick Gmail, Outlook or IMAP; 'imap' for a generic mailbox. | |
| account_id | No | Nilyo connection ID (unipile_account_id from list_connected_accounts) of an EXISTING account to re-authenticate. Omit to connect a new account. |