swarm_join_tokens
Retrieve the current worker and manager join tokens for a Docker swarm. These secret credentials are required to authorize a new node to join the swarm via swarm_join.
Instructions
Return the swarm's worker and manager join tokens.
These are the tokens a new node passes to swarm_join - without one, swarm_join cannot be
called, so this closes the init -> join loop. The tokens are secret bearer credentials (anyone
holding the manager token can join as a manager); treat the result as sensitive and avoid logging
it. Reads swarm.attrs["JoinTokens"] after a reload, so it always reflects the current tokens.
Returns: dict: {"Worker": , "Manager": }
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_join_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||