json_query_search_keys
Search for specific keys within a JSON file without knowing their exact path. Ideal for navigating large JSON data to locate relevant information quickly and efficiently.
Instructions
Search for keys in a JSON file. Use when you do not know the path to a key in a large JSON file, but have some idea what the key is.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
file_path | Yes | Absolute path to the JSON file. | |
limit | No | Maximum number of results to return (default: 5) | |
query | Yes | Search term for finding matching keys |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"file_path": {
"description": "Absolute path to the JSON file.",
"type": "string"
},
"limit": {
"default": 5,
"description": "Maximum number of results to return (default: 5)",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"query": {
"description": "Search term for finding matching keys",
"minLength": 1,
"type": "string"
}
},
"required": [
"file_path",
"query"
],
"type": "object"
}