Sap Read Tree
sap_read_treeReads SAP GUI tree controls to return node hierarchies with texts and column values, enabling AI assistants to inspect tree data and navigate large trees via node children or search.
Instructions
Read data from a tree control (TableTreeControl, ColumnTreeControl, etc.).
Returns node hierarchy with texts and column values. For large trees (e.g., SPRO with 1000+ nodes), use sap_get_tree_node_children for step-by-step navigation instead. Use sap_search_tree_nodes to find specific nodes by text.
total_nodes is the number of nodes read; truncated=true means the tree has more loaded nodes (available_nodes) than max_nodes allowed. events lists what the application reacts to on this tree (e.g. link_click, item_double_click, node_double_click): other clicks do nothing there.
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": {
"tree_id": "<tree_id>"
},
"name": "sap_read_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_id | Yes | ||
| max_nodes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||