list_kv_keys
Retrieve all keys from a Cloudflare Workers KV namespace with pagination and prefix filtering support to manage stored data efficiently.
Instructions
List all keys in a Workers KV namespace. Supports pagination and prefix filtering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Account ID (uses default from config if not provided) | |
| namespace_id | Yes | The KV namespace ID | |
| prefix | No | Filter keys by prefix | |
| limit | No | Maximum number of keys to return (default: 1000) | |
| cursor | No | Cursor for pagination |
Input Schema (JSON Schema)
{
"properties": {
"account_id": {
"description": "Account ID (uses default from config if not provided)",
"type": "string"
},
"cursor": {
"description": "Cursor for pagination",
"type": "string"
},
"limit": {
"description": "Maximum number of keys to return (default: 1000)",
"type": "number"
},
"namespace_id": {
"description": "The KV namespace ID",
"type": "string"
},
"prefix": {
"description": "Filter keys by prefix",
"type": "string"
}
},
"required": [
"namespace_id"
],
"type": "object"
}