distinct_paths
Discover every unique leaf path and JSON type in an unknown document; sample array items to map structure without scanning thousands of objects.
Instructions
List every unique leaf path in a JSON document.
Essential for understanding the shape of an unknown JSON file. For arrays, only the first N items are sampled to discover paths efficiently without scanning thousands of identical objects.
Args: alias: The alias of the loaded document. path: Starting path (default root). max_depth: Maximum recursion depth (default 10). sample_array_items: How many array elements to inspect (default 5).
Returns: A list of all discovered paths with their JSON types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| alias | Yes | ||
| max_depth | No | ||
| sample_array_items | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |