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).
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": "get_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| alias | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |