Set Module Details
set-module-detailsCreates or updates a module with its files, dependencies, and data flow. Attach up to 50 entries (APIs, entities) per call to populate slices.
Instructions
Creates or updates one vertical module (files, dependencies, dataFlow sync). IMPORTANT: Slices (api, domain, persistence) are built from entries, not from module text. When adding or updating a module, also add entries this module owns: pass facts[] (http-endpoint, entity, glossary, …) in this call (max 50 per call), or call set-entry / set-entries in 50-entry batches with refs.moduleName=. Max 50 entries per bulk call—split large catalogs into batches of ~50 to avoid oversized tool payloads. For full re-import: delete-entries once, then set-entries in 50-entry chunks; or replace-entries with deleteOrphans=false until the final batch (deleteOrphans=true). Without entries, get-slice will be empty for this module. After edits call validate to verify links. Does not replace other modules. Prefer over set-project-architecture for single-module edits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | Project ID (defaults to normalized workdir) | |
| name | Yes | Module name | |
| description | Yes | Detailed description of the module | |
| inputs | Yes | What the module accepts as input | |
| outputs | Yes | What the module produces as output | |
| dependencies | No | List of module dependencies | |
| files | No | Files belonging to this module; add matching entry kinds per Controller/Repository | |
| facts | No | Horizontal facts for this module (APIs, entities, terms). Max 50 per call; use set-entries for more. Each becomes an entry with refs.moduleName set automatically. | |
| usageExamples | No | Usage examples for this module | |
| notes | No | Additional notes or comments |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moduleId | Yes | ||
| message | Yes | ||
| entriesCreated | No | ||
| entriesUpdated | No | ||
| entryIds | No | ||
| reminder | No | ||
| suggestedKinds | No |