Replace a connection's key
replace_connection_keyStarts replacing one secret key of a connection (list_connections names them). The person pastes the new key on a CodeGene page this call opens for them or returns as a link, never in chat. Owners and admins only. If your prompt or page never appears and the call times out, call it again with finish_with set to "link".
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": {
"project_id": "<project_id>",
"connection_id": "<connection_id>",
"key_name": "<key_name>"
},
"name": "replace_connection_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_name | Yes | The key's name, as list_connections names it. | |
| project_id | Yes | The project (list_projects gives ids). | |
| finish_with | No | Leave out. "link" returns a CodeGene page link for the person to open instead of showing a prompt or opening the page for them, for an assistant that cannot. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. | |
| connection_id | Yes | The connection (list_connections gives ids). |