search_text
Recursively searches every string value in a loaded JSON document for a substring or regex pattern, returning each matching path and value so you can locate terms anywhere in large structures.
Instructions
Recursively search all string values for a substring or regex pattern.
Returns the paths and values of every match found. Useful for finding where a specific term appears anywhere in a large JSON document. Walks as deep as Python allows unless max_depth is set.
Args: alias: The alias of the loaded document. pattern: A substring or regex pattern to search for. path: Optional starting path to narrow the search scope. case_sensitive: Whether matching is case-sensitive (default False). max_depth: Stop after this many nested levels. Omit to walk the full safe depth.
Returns: A list of matching paths and their string values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| alias | Yes | ||
| pattern | Yes | ||
| max_depth | No | ||
| case_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |