ea_list_diagrams
List diagrams in an Enterprise Architect model, filter by package, diagram type, or name substring, and page or narrow large result sets using continuation and type breakdowns.
Instructions
List diagrams in the model, optionally filtered by package, diagram type, and/or name substring. Each entry in results carries diagramId, name, type, packagePath, and eaGuid. Diagrams are ordered by the model's internal identity — stable but artificial, neither alphabetical nor the analyst's tree order — so adjacency carries no meaning. Walk a large result set with offset rather than a larger limit; while rows remain, continuation names the next call. When far more diagrams match than one window can hold, breakdown reports how many each type holds, so the next call can narrow by diagramType instead of paging.
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_list_diagrams"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (default 50) | |
| offset | No | Zero-based index of the first result to return (default 0). Page by re-calling with the offset carried in continuation. | |
| packageId | No | Filter to diagrams in this package | |
| diagramType | No | Filter by diagram type (e.g., Logical, Use Case, Sequence, Activity, Component) | |
| nameContains | No | Filter to diagrams whose name contains this substring (case- and diacritic-insensitive across European Latin alphabets) |