Set an environment variable
set_variableSet a non-secret environment variable, creating the environment if it does not exist, and write it to the Git-shared file so requests can reuse it as {{key}}.
Instructions
Set a non-secret variable in an environment, creating the environment if it does not exist. The value is written to the environment's file, so it is shared through Git; never use it for a secret. Secret variables and protected environments can only be changed in Kurlo.
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": {
"key": "<key>",
"value": "<value>"
},
"name": "set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Variable name, used in requests as {{key}}. | |
| value | Yes | Value. | |
| workspace | No | Workspace name, when the folder holds more than one. | |
| description | No | What the variable is for. | |
| environment | No | Environment name. Defaults to the one the server was started with. |