Sap Read Tree
sap_read_treeRead node hierarchies and column values from SAP tree controls. For large trees, navigate child nodes or search by text instead.
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.
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 | |||