swarm_join_tokens
Retrieves the current swarm join tokens for workers and managers, enabling new nodes to join the swarm.
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": }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||