var_get_table_size
Get the element count of an ICCAP_ARRAY variable. Use this to check array size before iterating; returns null for scalar string values.
Instructions
Get the size of an ICCAP_ARRAY type variable. Only works on variables whose value is an ICCAP_ARRAY (set via mvar_set with a JSON array like '["a","b"]'). Returns null for scalar string values.
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": {
"var_path": "<var_path>"
},
"name": "var_get_table_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| var_path | Yes | Full path to the variable |