set_auth_token
Set or update the authentication token to resolve UniFi controller authentication failures or configure a missing token.
Instructions
Set or update the browser TOKEN cookie for authentication.
Use this when authentication fails or no token is configured. To get the token: log into the UniFi controller in a browser, open DevTools (Cmd+Option+I) > Application > Cookies, and copy the TOKEN value.
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": {
"token": "<token>"
},
"name": "set_auth_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | TOKEN cookie value from browser (JWT string starting with eyJ...) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||