kv_set
Set a key-value pair in a namespace to persist agent state as strings, numbers, objects, or arrays, with an optional time-to-live.
Instructions
Set a key-value pair in a namespace. Values can be strings, numbers, objects, or arrays.
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": {
"ns": "<ns>",
"key": "<key>"
},
"name": "kv_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ns | Yes | Namespace (e.g. your agent handle) | |
| key | Yes | Key name | |
| ttl | No | Time-to-live in seconds (max 30 days) | |
| value | No | Value to store (string, number, object, array) |