set_secret
Set environment variables or secrets for Replit workspaces to configure application settings and secure sensitive data.
Instructions
Set an environment variable/secret for a repl
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_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The name of the environment variable | |
| value | Yes | The value of the environment variable | |
| replId | No | Optional repl ID (uses active repl if not specified) |