Set variables and secrets
set_envSets or removes an environment's variables and secrets (in the vault by default, never read back); they apply at the next deployment. get_environment { view: "variables" } reads their names.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | A single variable: its name (with "value"), instead of "values". | |
| file | No | true: a secret delivered as a file, never as a variable: the app reads it in /run/secrets/<NAME>. Required for a secret in the production of a project linked to a federated connection. | |
| move | No | A name: this secret moves to the build (build: true) or to the app, its value kept in the vault. | |
| build | No | true: a build secret (build.secrets, e.g. NPM_TOKEN), read by builds only, never by the app. With delete: removes one. | |
| trial | No | The key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call. | |
| value | No | A single variable: its value (with "key"). | |
| delete | No | Names of the variables or secrets to delete from this environment. | |
| secret | No | true: in the vault, never read back (default). false: plain variable, which a person reads back in while, never an agent. | |
| values | No | Key/value pairs. Example: { "LOG_LEVEL": "debug" } | |
| project | No | The project. | |
| environment | No | Production or a preview. | production |