ea_get_package_tree
Retrieve top-level packages or the child hierarchy of a specified package, with configurable depth, to navigate and inspect Sparx Enterprise Architect model structure.
Instructions
Navigate the package hierarchy. Without parameters, returns top-level packages. With a packageId, returns that package's children up to the specified depth. Each node carries id, name, parentId, and elementCount.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ea_get_package_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many levels deep to recurse (max 3, default 1) | |
| packageId | No | Package ID to get children of. Omit for top-level packages. |