kv_set
Store a key-value pair in a Codehooks.io space, optionally setting a time-to-live (TTL) in milliseconds and specifying a keyspace for organization.
Instructions
Set key-value pair in a space with optional TTL and keyspace.
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": {
"key": "<key>",
"val": "<val>"
},
"name": "kv_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key to set | |
| ttl | No | Time to live in millis for value | |
| val | Yes | Value to set | |
| json | No | Output info as JSON (not table) | |
| keyspace | No | Keyspace to use |