Set secret
set_secretSet or unset one app secret {app, key, value}: a string value sets it (names use uppercase letters, digits and _, at most 64 characters, at most 50 secrets per app, reserved names refused; encrypted at rest, never shown again), null unsets it. Applies on the next deploy. Owner only; secret names are listed by open_app {include: ["secrets"]}.
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": {
"app": "<app>",
"key": "<key>",
"value": "<value>"
},
"name": "set_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app slug. | |
| key | Yes | Worker-env name: uppercase letters, digits and `_`, at most 64 characters; platform-reserved names refused. | |
| value | Yes | The secret value (at most 4 KiB). Encrypted at rest, never shown again. Required: pass a string to set, null to unset. |