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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"alias": "<alias>"
},
"name": "distinct_paths"
}
}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 |