Update credentials
update_credentialsUpdate Immich server URL and API key credentials after a key rotation or URL change, validating them before saving and applying the new connection.
Instructions
Update the Immich connection credentials. Use this when the API key has been rotated or the server URL changed. Validates credentials before applying. Side effect: persists new credentials to disk and hot-swaps the live connection.
Args:
base_url: Full Immich server URL including protocol (e.g. 'https://photos.example.com').
api_key: A valid Immich API key (generated in Immich > User Settings > API Keys).
Returns: JSON with success status, photo/video counts confirming access, and persistence path.
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": {
"base_url": "<base_url>",
"api_key": "<api_key>"
},
"name": "update_credentials"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | ||
| base_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |