cache_keys
Retrieve cache instance keys matching a glob pattern using SCAN to prevent server blocking. Optionally limit results and set pattern.
Instructions
List keys in a cache instance matching an optional glob pattern (e.g. "user:", "session:"). Uses SCAN to avoid blocking the server. Returns at most count keys.
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": {
"instance_id": "<instance_id>"
},
"name": "cache_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Max keys to return (default: 50, max: 500) | |
| pattern | No | Glob pattern (default: *) | |
| instance_id | Yes |