create-secret
Create a new secret in a project environment at the root folder or a named path. Fails if the secret name already exists; use update-secret to change an existing value.
Instructions
Create a new secret in a project environment. It goes in the root folder, which always exists, unless secretPath names another folder; create that folder with create-folder first. Fails if a secret with that name already exists there; use update-secret to change it.
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": {
"projectId": "<projectId>",
"environmentSlug": "<environmentSlug>",
"secretName": "<secretName>"
},
"name": "create-secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The ID of the project, from list-projects. A project slug or exact project name also works. | |
| secretName | Yes | The name of the secret, such as DATABASE_URL | |
| secretPath | No | The folder path, such as "/" for the root or "/backend/api" for a nested folder. Defaults to "/". | |
| secretValue | No | The value of the secret. Defaults to an empty value | |
| environmentSlug | Yes | The slug of the environment, such as dev, staging or prod. list-projects shows each project's environments. An environment name such as Production also works. |