Get connection link
get_connection_urlReturn an OAuth sign-in URL for a service that needs a connection. hostType/packageId/serviceId: from get_block_schema connectionInfo or a search/list row. Rejected for a service that does not use OAuth. Once the account is connected, list_connections returns the new connection; its _id is configure_block's connectionId.
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": {
"workspaceId": "<workspaceId>",
"hostType": "<hostType>",
"packageId": "<packageId>",
"serviceId": "<serviceId>"
},
"name": "get_connection_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostType | Yes | Identifies an extension service together with packageId and serviceId: the three values come together from one row of search_extensions, search_shared_extensions or list_extension_services, exactly as shown; other values are rejected. null for an MCP server or a knowledge base (their rows show hostType and packageId as null). An unknown or mismatched combination is rejected. | |
| packageId | Yes | From the same row as hostType; null if the row has none. | |
| serviceId | Yes | From the same row as hostType. | |
| workspaceId | Yes |