Set environment variables
set_variablesSaves plain variable values such as baseUrl or userId to a workspace environment file for later requests and app use, while refusing credentials and secret-marked variables.
Instructions
Save plain variable values such as baseUrl or userId in an environment file of the workspace, so later requests and the developer's app use them. Credentials are refused, and so are variables the developer marked secret. Values set here never let requests reach a new host. Refused when the environment changed since list_environments showed 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": {
"variables": "<variables>"
},
"name": "set_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision | No | The revision you last read (from get_request, list_environments or a save). The save is refused if the item has changed since. Leave out to use the one this session last saw. | |
| variables | Yes | Names and plain values, such as {"baseUrl": "http://localhost:8080"}. Credentials are refused; the developer sets those in the app or with --var-from-env. | |
| environment | No | The environment to change, as list_environments shows it. Defaults to the active one. A name that does not exist yet creates that environment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | ||
| note | No | ||
| active | No | ||
| created | No | ||
| revision | No | ||
| environment | No | ||
| overriddenByCommandLine | No |