Set KV value
set_kvSet or update a key-value pair in an existing BrewPage KV store with an owner token, so agents can store or change hosted data.
Instructions
Set or update a key in an existing BrewPage KV store. Requires owner token. The key name hosting is reserved. Old publications (made before 5 October 2026) are read-only: 409 OLD_PUBLICATION_READ_ONLY with createUrl to publish anew. BrewPage tokens and manage links must never be in public content.
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": "<namespace>",
"id": "<id>",
"key": "<key>",
"value": "<value>"
},
"name": "set_kv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | KV store ID | |
| key | Yes | Key to set | |
| value | Yes | Value to assign to the key | |
| namespace | Yes | KV store namespace | |
| ownerToken | No | Owner token from create. Default: env BREWPAGE_OWNER_TOKEN (local server only). |