Cloudflare: Put kv value
cloudflare_put_kv_valueWrites a value to a key in Cloudflare Workers KV, creating the key if missing; optionally set an absolute expiration timestamp or a TTL in seconds.
Instructions
[UNIFIED] Write a KV value for a key (Workers KV Storage Edit permission). Creates the key if it does not exist. Optionally set expiration (absolute Unix timestamp) or expiration_ttl (seconds from now).
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": {
"site": "<site>",
"namespace_id": "<namespace_id>",
"key_name": "<key_name>",
"value": "<value>"
},
"name": "cloudflare_put_kv_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| value | Yes | ||
| key_name | Yes | ||
| account_id | No | ||
| expiration | No | ||
| namespace_id | Yes | ||
| expiration_ttl | No |