Create (or rename) a workspace's vault
create_vaultCreates a workspace secret vault or renames an existing one, defining the identifier code uses to reference secrets. Only the workspace owner can do this; renaming requires confirm=true.
Instructions
Creates the workspace's secret vault, or renames an existing one. The name is the IDENTIFIER block code uses: with name "MyVault", a secret "prodDb" is referenced as MyVault.prodDb. Do this once, then add secrets with set_vault_secret. Renaming an existing vault BREAKS code that references the old name, so it requires confirm=true. Only the workspace OWNER can.
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": {
"workspaceId": "<workspaceId>",
"name": "<name>"
},
"name": "create_vault"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Vault identifier used in block code, e.g. "MyVault". Letters/digits/underscore. | |
| confirm | No | Required only when renaming an existing vault (creating a new one does not need it). | |
| workspaceId | Yes |