create_connected_account_magic_link
Create an OAuth connection link so a user can connect an account like Notion or Gmail in a specified Scalekit environment. Returns a new link and expiry.
Instructions
Create a link that lets someone connect an OAuth connector account, such as Notion or Gmail, in one environment. Use list_connected_accounts to see accounts that are already connected. This tool does not search the catalog. Use search_connectors for that. Requires the caller OAuth token. Each call returns a new link and an expiry.
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": {
"environmentId": "<environmentId>",
"identifier": "<identifier>",
"connector": "<connector>"
},
"name": "create_connected_account_magic_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connector | Yes | Connector identifier, for example notion or gmail. Use a value from search_connectors. | |
| identifier | Yes | Friendly name for the account being connected. | |
| environmentId | Yes | Scalekit environment id. Format: env_<id>. |