Connect a CookiePal account
connect_accountConnects this client to a CookiePal account, opening sign-in (or sign-up, for someone without an account) in the browser if needed, then reports who is connected: the user, the organisation and the domain other tools act on by default. Pass the plugin’s install ID only with linkInstall: true if the user agreed to link it to this account, or linkInstall: false if they said no.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "connect_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| installId | No | The plugin’s install ID, sent with `linkInstall` to carry out the user’s answer to linking it to this account. Leave it out when the user shared no install ID. | |
| linkInstall | No | Required with `installId`: true only if the user agreed to link the install ID to this account (a separate question from sharing it), false if they said no, which also removes any link made before. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| domain | Yes | ||
| userId | Yes | ||
| installLinked | Yes | Whether the install ID is linked to this account now, after this call. | |
| organisationId | Yes | ||
| installUnlinked | Yes | ||
| organisationName | No |