cloudflare_worker_secret_set
Create or update a secret for a Cloudflare Workers script. The value is not echoed in the response for security.
Instructions
Set a secret for a Workers script. Creates or updates the named secret. The secret value is NOT echoed in the response for security.
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": {
"script_name": "<script_name>",
"secret_name": "<secret_name>",
"secret_value": "<secret_value>"
},
"name": "cloudflare_worker_secret_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_name | Yes | Worker script name (lowercase alphanumeric and hyphens) | |
| secret_name | Yes | Name of the secret (e.g., 'API_KEY', 'DB_PASSWORD') | |
| secret_value | Yes | Secret value to store |