auto_layout_mcd
Automatically rearranges all the ERD entities and data-source blocks: columns by FK depth (referenced entities on the left, junction tables between their targets), vertical order at the barycenter of the relations to minimize crossings, heights measured on the actual number of fields, and wide gutters reserved for arrow routing. It overwrites positions, including ones you placed by hand, and clears the manual waypoints of all the relations (obsolete after repositioning): the tool keeps no copy of the previous layout: an earlier saved version, restored with restore_version (which replaces the whole schema), is the only way back. Takes no input and has no dry run. REFUSED with an error, nothing written, when the project has no ERD entity or data-source block. Does not modify the internal layout of the other kinds (auto_layout_org, auto_layout_process, auto_layout_journey, or auto_layout_canvas for every kind at once); if the recomputed ERD region overlaps another one, the following regions in the stacking order (org, ERD, process, journey, arch, captable) may be shifted AS A WHOLE, and not card by card. Handy after a large series of entity/relation additions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _unused | No | Ignored: this tool takes no input and the parameter has no effect | |
| expectedProjectId | No | UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted. |