get_statetree_states
Retrieve the StateTree state hierarchy as a JSON tree. Control depth and filter states by name to inspect task and transition counts.
Instructions
Get state hierarchy as a JSON tree. Each state shows name, type, ID, task/transition counts.
Use max_depth to limit recursion (0=roots only, 1=roots+children, -1=unlimited). Use name_filter for case-insensitive substring match on state names.
Args: asset_path: Content path to the StateTree asset max_depth: Maximum depth to recurse (-1 for unlimited) name_filter: Only include states whose name contains this substring
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": {
"asset_path": "<asset_path>"
},
"name": "get_statetree_states"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | ||
| asset_path | Yes | ||
| name_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |