connect_site
Links a user's solar or battery system to their Aivy account via vendor serial/ID or OAuth approval, returning connected site IDs or an authorization URL to add the site.
Instructions
CHANGES THE ACCOUNT (control scope). Confirm with the user before calling.
Link the user's system to their Aivy account. Serial-number vendors (Sungrow and FoxESS need sn + nmi,
Sigenergy needs system_id, most others sn) return connected site ids. OAuth vendors (AlphaESS, SolaX)
return an authorize_url: give it to the user to open in a browser and approve; the site then appears in
list_sites within a minute. Demo sites need no connecting.
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": {
"vendor": "<vendor>"
},
"name": "connect_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sn | No | ||
| nmi | No | ||
| region | No | AU | |
| vendor | Yes | ||
| system_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |