Replace an AI provider's key
colliedesk_ai_provider_key_setReplace a provider's key. The key is checked with one small billed request to the first model and saved only when it works; it is sealed on the server and never shown again. It passes through this conversation, so use a key you can revoke at the provider. When the check fails nothing changes and the old key keeps working.
Needs: ai_settings:manage_credentials.
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": {
"provider_id": "<provider_id>",
"api_key": "<api_key>"
},
"name": "colliedesk_ai_provider_key_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | ||
| provider_id | Yes | From colliedesk_ai_settings_get. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||