get_keys
Retrieve all keys from a JSON object or item count from an array at a specified path in a loaded document using its alias.
Instructions
Get all keys at a given path in a loaded JSON document.
Works on objects (returns key names) and arrays (returns index count).
Args: alias: The alias of the loaded document. path: Dot/bracket notation path to navigate into the document. Examples: "", "data.users", "items[0].tags". Empty string means root.
Returns: List of keys (for objects) or item count (for arrays).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| alias | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |