Docker secret create
docker_secret_createCreates a Docker Swarm secret from a given name and data, optionally targeting a named multi-context pool for deployment.
Instructions
Create a swarm secret (real secrets.create).
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": {
"secret_name": "<secret_name>",
"data": "<data>"
},
"name": "docker_secret_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| secret_name | Yes |