create-secret
Add a new secret to an Infisical project by specifying its name, value, environment, and optional path.
Instructions
Create a new secret in Infisical
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 to create the secret in (required) | |
| secretName | Yes | The name of the secret to create (required) | |
| secretPath | No | The path of the secret to create (Defaults to /) | |
| secretValue | No | The value of the secret to create | |
| environmentSlug | Yes | The slug of the environment to create the secret in (required) |