kv_key_put
Write or update a key-value pair in a Cloudflare KV namespace with optional metadata. Specify namespace ID, key, and value to store the data.
Instructions
Write a key-value pair to a KV namespace
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": {
"namespace_id": "<namespace_id>",
"key": "<key>",
"value": "<value>"
},
"name": "kv_key_put"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key to write | |
| value | Yes | Value to store | |
| metadata | No | Optional metadata | |
| namespace_id | Yes | KV namespace ID |