search_json
Search JSON structures for keys, values, or paths. Returns matching nodes with JSONPath locations. Supports key, value, and path search modes with case sensitivity and result limits.
Instructions
Search for keys, values, or paths inside a JSON structure. Returns matching nodes with their JSONPath locations. Supports key search (field name contains), value search (value string contains), and path search (JSONPath contains). Respects maxResults limit (default 50).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The JSON string to search in. | |
| mode | No | Search mode: "key" (field names), "value" (string/number values), "path" (JSONPath), "all" (default — everything). | all |
| query | Yes | The search term. Matches against keys, values, or paths depending on `mode`. | |
| maxResults | No | Maximum number of results to return (default: 50) | |
| caseSensitive | No | Case-sensitive search (default: false) |