swarm_unlock_key
Retrieve the current Docker swarm unlock key for managers with autolock enabled. Use this key to unlock a manager after restart, restoring access when the swarm is locked.
Instructions
Return the swarm's current unlock key.
The key only serves a purpose when autolock is enabled (see swarm_init's /
swarm_update's autolock_managers / rotate_manager_unlock_key). Must be called
against an unlocked manager - a locked manager cannot serve API requests, including
this one. Feed the result's key to swarm_unlock to unlock a manager after restart.
Treat the key as a sensitive credential.
Returns: dict: {"UnlockKey": }
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "swarm_unlock_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||