count
Get the number of items in an array or keys in an object at a given path. Quickly retrieve item or key totals from loaded JSON data.
Instructions
Count items in an array or keys in an object at a given path.
Args: alias: The alias of the loaded document. path: Dot/bracket notation path. Empty string means root.
Returns: The item/key count at the given path.
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": "count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| alias | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |