{"at":"2026-11-23T01:31:01.908Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:31:02.287Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:31:02.388Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:31:02.796Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":true},"tools":{"listChanged":true}},"instructions":"Always call list-projects first. Pass projectId to every other tool. Match the current workspace by folder name. Never omit projectId. Never use default-project.","protocolVersion":"2025-11-25","serverInfo":{"name":"mcp-architector","version":"1.11.1"}}}}
{"at":"2026-11-23T01:31:02.796Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:31:02.796Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:31:02.803Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Creates or updates vertical module structure (components and dataFlow)—not horizontal facts. By default merges modules and dataFlow by name; omit dataFlow to keep existing flow. Use replaceModules or replaceDataFlow for full replace. For one module use set-module-details or set-module-data-flow. For bulk flow rebuild use rebuild-data-flow. Each new module still needs entries—use set-module-details with facts[] or set-entries after bulk structure. For APIs, domain terms, scripts use set-entry + get-slice—not this tool. projectId is required—call list-projects first. Never use default-project. Do not duplicate entry text in module descriptions.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dataFlow":{"additionalProperties":{"additionalProperties":false,"properties":{"dataTransformation":{"description":"How data is transformed between modules","type":"string"},"dependsOn":{"description":"Modules this module depends on","items":{"type":"string"},"type":"array"},"providesTo":{"description":"Modules that receive data from this module","items":{"type":"string"},"type":"array"}},"type":"object"},"description":"Data flow between modules; omit to preserve existing","type":"object"},"description":{"description":"Overall project description","type":"string"},"modules":{"description":"List of modules in the project","items":{"additionalProperties":false,"properties":{"description":{"description":"Brief description of the module","type":"string"},"inputs":{"description":"What this module requires to work","type":"string"},"name":{"description":"Module name","type":"string"},"outputs":{"description":"What this module produces or generates","type":"string"}},"required":["name","description"],"type":"object"},"type":"array"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"replaceDataFlow":{"description":"Replace entire dataFlow (default false = merge by module name)","type":"boolean"},"replaceModules":{"description":"Replace entire modules list (default false = merge by name)","type":"boolean"}},"required":["projectId","description","modules"],"type":"object"},"name":"set-project-architecture","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"message":{"type":"string"},"projectId":{"type":"string"}},"required":["projectId","message"],"type":"object"},"title":"Set Project Architecture"},{"description":"Returns vertical structure: project description, module list, dataFlow. Use for refactoring boundaries between components. For all HTTP endpoints or domain terms use get-slice—not this tool. For one module's files and examples use get-module-details. projectId is required—call list-projects first.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId"],"type":"object"},"name":"get-project-architecture","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"architecture":{}},"type":"object"},"title":"Get Project Architecture"},{"description":"Call first. Lists projects in ~/.mcp-architector with projectId, description, moduleCount, updatedAt, isCurrent, forbidden. Match this workspace by folder name (query). Pass that projectId to every other tool—never omit, never use default-project. isCurrent is only a hint from MCP_PROJECT_ID. If none matches, create with set-project-architecture using a stable id from the workspace path.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"query":{"description":"Filter by substring in projectId or description","type":"string"}},"type":"object"},"name":"list-projects","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"projects":{"type":"array"},"reminder":{"type":"string"},"suggestedProjectId":{"type":["string","null"]}},"required":["projects","suggestedProjectId","reminder"],"type":"object"},"title":"List Projects"},{"description":"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=<module name>. 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.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dependencies":{"description":"List of module dependencies","items":{"type":"string"},"type":"array"},"description":{"description":"Detailed description of the module","type":"string"},"facts":{"description":"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.","items":{"additionalProperties":false,"properties":{"kind":{"type":"string"},"payload":{"additionalProperties":{},"type":"object"},"refs":{"additionalProperties":false,"properties":{"entryIds":{"items":{"type":"string"},"type":"array"},"files":{"items":{"type":"string"},"type":"array"},"moduleName":{"description":"Module name; set-module-details sets this automatically","type":"string"}},"type":"object"},"summary":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"}},"required":["kind","title","summary"],"type":"object"},"maxItems":50,"type":"array"},"files":{"description":"Files belonging to this module; add matching entry kinds per Controller/Repository","items":{"type":"string"},"type":"array"},"inputs":{"description":"What the module accepts as input","type":"string"},"name":{"description":"Module name","type":"string"},"notes":{"description":"Additional notes or comments","type":"string"},"outputs":{"description":"What the module produces as output","type":"string"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"usageExamples":{"description":"Usage examples for this module","items":{"additionalProperties":false,"properties":{"command":{"description":"Command or code snippet","type":"string"},"description":{"description":"Description of the example","type":"string"},"input":{"description":"Input data","type":"string"},"notes":{"description":"Additional notes about this example","type":"string"},"output":{"description":"Expected output","type":"string"},"title":{"description":"Example title","type":"string"}},"required":["title"],"type":"object"},"type":"array"}},"required":["projectId","name","description","inputs","outputs"],"type":"object"},"name":"set-module-details","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"entriesCreated":{"type":"number"},"entriesUpdated":{"type":"number"},"entryIds":{"items":{"type":"string"},"type":"array"},"message":{"type":"string"},"moduleId":{"type":"string"},"reminder":{"type":"string"},"suggestedKinds":{"items":{"type":"string"},"type":"array"}},"required":["moduleId","message"],"type":"object"},"title":"Set Module Details"},{"description":"Returns one module's full detail (files, dependencies, examples). Use when you know the module name from get-project-architecture or list-modules. If module has files but get-slice is empty, add entries with refs.moduleName=this module. For cross-cutting API/domain lists use get-slice. moduleName must match architecture exactly.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"moduleName":{"description":"Name of the module to retrieve","type":"string"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId","moduleName"],"type":"object"},"name":"get-module-details","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"module":{}},"type":"object"},"title":"Get Module Details"},{"description":"Lists module summaries from architecture (name, description)—vertical structure only. For horizontal facts (endpoints, tables, terms) use list-slices then get-slice. After edits run validate. Use module names in set-entry refs.moduleName.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId"],"type":"object"},"name":"list-modules","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"modules":{"type":"array"}},"required":["modules"],"type":"object"},"title":"List All Modules"},{"description":"Patches dataFlow for one module (dependsOn is canonical; providesTo is recomputed). Syncs module file dependencies. Prefer over set-project-architecture for single-module graph edits.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dataTransformation":{"description":"How data is transformed between modules","type":"string"},"dependsOn":{"description":"Modules this module depends on","items":{"type":"string"},"type":"array"},"moduleName":{"description":"Module name","type":"string"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"syncInverse":{"description":"Recompute providesTo from dependsOn (default true)","type":"boolean"}},"required":["projectId","moduleName"],"type":"object"},"name":"set-module-data-flow","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"message":{"type":"string"},"moduleName":{"type":"string"}},"required":["moduleName","message"],"type":"object"},"title":"Set Module Data Flow"},{"description":"Rebuilds dataFlow for all modules from module file dependencies or existing dependsOn edges. Recomputes providesTo and optionally syncs module files. Use instead of editing architecture.json directly.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"pruneOrphans":{"description":"Remove invalid module references (default true)","type":"boolean"},"source":{"description":"Source for dependsOn edges (default module-dependencies)","enum":["module-dependencies","dataFlow-dependsOn"],"type":"string"},"syncInverse":{"description":"Recompute providesTo (default true)","type":"boolean"}},"required":["projectId"],"type":"object"},"name":"rebuild-data-flow","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"edgesAdded":{"type":"number"},"edgesRemoved":{"type":"number"},"message":{"type":"string"},"modulesUpdated":{"type":"number"}},"required":["edgesAdded","edgesRemoved","modulesUpdated","message"],"type":"object"},"title":"Rebuild Data Flow"},{"description":"Run after set-project-architecture, set-module-details, set-entry, or set-entries. Returns a compact report (summary, stats, issues by kind)—no need to load the full project in the agent. Checks only known rules: dataFlow consistency, module↔entry links, module detail files, entry index drift, empty api/domain/persistence slices, entry slice coverage, optional module-too-few-entries when moduleEntryMin is set. If catalog JSON is corrupt, run fix-data first. Fix issues[] then call validate again.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"checkEmptySlices":{"description":"Warn when api/domain/persistence slices have zero entries but modules exist (default true)","type":"boolean"},"checkEntryCoverage":{"description":"Check modules vs entries linkage (default true)","type":"boolean"},"checkInverse":{"description":"Check providesTo vs dependsOn inverse (default true)","type":"boolean"},"checkModuleDeps":{"description":"Check module.dependencies vs dataFlow.dependsOn (default true)","type":"boolean"},"checkModuleEntryCounts":{"description":"Check module-too-few-entries when moduleEntryMin is set (default true)","type":"boolean"},"checkSliceCoverage":{"description":"Check entries match at least one built-in or custom slice (default true)","type":"boolean"},"checkStorage":{"description":"Check module files on disk and entry index drift (default true)","type":"boolean"},"moduleEntryMin":{"description":"Min entries per module when count > 0; omit to disable module-too-few-entries","type":"number"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId"],"type":"object"},"name":"validate","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"checksRun":{"items":{"type":"string"},"type":"array"},"coverage":{"additionalProperties":false,"properties":{"entriesOrphanModule":{"type":"number"},"entriesSliceOrphan":{"type":"number"},"entriesUnlinked":{"type":"number"},"entriesWithoutModules":{"type":"number"},"modulesTooFewEntries":{"type":"number"},"modulesTooManyEntries":{"type":"number"},"modulesWithoutEntries":{"type":"number"}},"required":["modulesWithoutEntries","entriesUnlinked","entriesOrphanModule","entriesWithoutModules","entriesSliceOrphan","modulesTooManyEntries","modulesTooFewEntries"],"type":"object"},"issueCount":{"type":"number"},"issues":{"items":{"additionalProperties":false,"properties":{"detail":{"type":"string"},"kind":{"type":"string"},"module":{"type":"string"}},"required":["kind","module","detail"],"type":"object"},"type":"array"},"issuesByKind":{"additionalProperties":{"type":"number"},"type":"object"},"projectId":{"type":"string"},"stats":{"additionalProperties":false,"properties":{"entryCount":{"type":"number"},"entryFilesOnDisk":{"type":"number"},"indexItemCount":{"type":"number"},"moduleCount":{"type":"number"}},"required":["moduleCount","entryCount","entryFilesOnDisk","indexItemCount"],"type":"object"},"summary":{"type":"string"},"valid":{"type":"boolean"}},"required":["projectId","valid","issueCount","summary","stats","issuesByKind","issues","checksRun"],"type":"object"},"title":"Validate Project"},{"description":"Alias for validate with the same checks. Prefer validate after edits. Legacy name kept for compatibility.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"checkEmptySlices":{"description":"Warn when api/domain/persistence slices have zero entries but modules exist (default true)","type":"boolean"},"checkEntryCoverage":{"description":"Check modules vs entries linkage (default true)","type":"boolean"},"checkInverse":{"description":"Check providesTo vs dependsOn inverse (default true)","type":"boolean"},"checkModuleDeps":{"description":"Check module.dependencies vs dataFlow.dependsOn (default true)","type":"boolean"},"checkModuleEntryCounts":{"description":"Check module-too-few-entries when moduleEntryMin is set (default true)","type":"boolean"},"checkSliceCoverage":{"description":"Check entries match at least one built-in or custom slice (default true)","type":"boolean"},"checkStorage":{"description":"Check module files on disk and entry index drift (default true)","type":"boolean"},"moduleEntryMin":{"description":"Min entries per module when count > 0; omit to disable module-too-few-entries","type":"number"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId"],"type":"object"},"name":"validate-architecture","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"checksRun":{"items":{"type":"string"},"type":"array"},"coverage":{"additionalProperties":false,"properties":{"entriesOrphanModule":{"type":"number"},"entriesSliceOrphan":{"type":"number"},"entriesUnlinked":{"type":"number"},"entriesWithoutModules":{"type":"number"},"modulesTooFewEntries":{"type":"number"},"modulesTooManyEntries":{"type":"number"},"modulesWithoutEntries":{"type":"number"}},"required":["modulesWithoutEntries","entriesUnlinked","entriesOrphanModule","entriesWithoutModules","entriesSliceOrphan","modulesTooManyEntries","modulesTooFewEntries"],"type":"object"},"issueCount":{"type":"number"},"issues":{"items":{"additionalProperties":false,"properties":{"detail":{"type":"string"},"kind":{"type":"string"},"module":{"type":"string"}},"required":["kind","module","detail"],"type":"object"},"type":"array"},"issuesByKind":{"additionalProperties":{"type":"number"},"type":"object"},"projectId":{"type":"string"},"stats":{"additionalProperties":false,"properties":{"entryCount":{"type":"number"},"entryFilesOnDisk":{"type":"number"},"indexItemCount":{"type":"number"},"moduleCount":{"type":"number"}},"required":["moduleCount","entryCount","entryFilesOnDisk","indexItemCount"],"type":"object"},"summary":{"type":"string"},"valid":{"type":"boolean"}},"required":["projectId","valid","issueCount","summary","stats","issuesByKind","issues","checksRun"],"type":"object"},"title":"Validate Architecture"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"readOnlyHint":false},"description":"Run when catalog JSON is corrupt (list-modules, get-module-details, or validate fail with extra data after JSON). Rewrites the first valid JSON object in architecture, modules, entries, and slices; removes leftover .tmp files; rebuilds the entry index. Does not delete facts. Optional dryRun previews without writing.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dryRun":{"description":"Preview repairs without writing (default false)","type":"boolean"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId"],"type":"object"},"name":"fix-data","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"dryRun":{"type":"boolean"},"files":{"items":{"additionalProperties":false,"properties":{"detail":{"type":"string"},"extraBytes":{"type":"number"},"path":{"type":"string"},"status":{"type":"string"}},"required":["path","status"],"type":"object"},"type":"array"},"indexItemCount":{"type":"number"},"projectId":{"type":"string"},"repaired":{"type":"number"},"scanned":{"type":"number"},"summary":{"type":"string"},"tmpRemoved":{"type":"number"},"unreadable":{"type":"number"}},"required":["projectId","scanned","repaired","unreadable","tmpRemoved","indexItemCount","files","summary","dryRun"],"type":"object"},"title":"Fix Catalog Data"},{"description":"Rebuilds entries/index.json from entry files on disk. Use when list-entries or get-slice miss entries that exist as files (index drift). Does not modify entry bodies.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId"],"type":"object"},"name":"rebuild-entry-index","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"itemCount":{"type":"number"},"message":{"type":"string"}},"required":["itemCount","message"],"type":"object"},"title":"Rebuild Entry Index"},{"description":"Deletes one module from architecture and its module detail file. Does not delete entries—remove those with delete-entry if needed. Does not delete custom slices.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"moduleName":{"description":"Name of the module to delete","type":"string"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId","moduleName"],"type":"object"},"name":"delete-module","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"message":{"type":"string"}},"required":["message"],"type":"object"},"title":"Delete Module"},{"description":"Entries need vertical structure: create modules via set-project-architecture / set-module-details before or when adding entries. Set refs.moduleName to an existing module name from list-modules. Run validate after edits to find entries-without-modules, entry-unlinked, or empty slices. Creates or updates one canonical project fact (entry). Use when you discovered a concrete fact while working. Do not use for module structure—use set-module-details. Do not copy module.description into summary; link via refs.moduleName only. Upsert: pass id to update, or omit id to match by kind+title or create new. Example: kind=http-endpoint, title='POST /orders', summary='Creates order', refs.moduleName='orders', refs.files=['src/OrderController.java'].","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Entry uuid; omit to upsert by kind+title or create new","type":"string"},"kind":{"description":"Free-form type: http-endpoint, glossary, entity, flow, script, godot-scene, etc. Builtin slice list-slices shows recommended kinds per sliceId","type":"string"},"payload":{"additionalProperties":{},"description":"Kind-specific extra fields only, e.g. method/path for APIs, steps for flow","type":"object"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"refs":{"additionalProperties":false,"properties":{"entryIds":{"description":"Related entry ids, e.g. flow steps pointing to other entries","items":{"type":"string"},"type":"array"},"files":{"description":"Workspace-relative file paths where this fact lives","items":{"type":"string"},"type":"array"},"moduleName":{"description":"Module name from list-modules. Required when project has modules. Do not paste module description here—link by name.","type":"string"}},"type":"object"},"summary":{"description":"1-2 sentences; not a module essay—only this fact","type":"string"},"tags":{"description":"Optional labels for get-slice query filtering","items":{"type":"string"},"type":"array"},"title":{"description":"Short unique label for search, e.g. 'POST /orders' or 'Order'","type":"string"}},"required":["projectId","kind","title","summary"],"type":"object"},"name":"set-entry","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"entryId":{"type":"string"},"message":{"type":"string"},"reminder":{"type":"string"},"suggestedModuleNames":{"items":{"type":"string"},"type":"array"},"warning":{"type":"string"}},"required":["entryId","message"],"type":"object"},"title":"Set Entry"},{"description":"Entries need vertical structure: create modules via set-project-architecture / set-module-details before or when adding entries. Set refs.moduleName to an existing module name from list-modules. Run validate after edits to find entries-without-modules, entry-unlinked, or empty slices. 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). Set refs.moduleName per entry, or pass top-level moduleName as default. Prefer set-entries in 50-entry chunks over one huge replace-entries payload.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"entries":{"description":"Facts to upsert (max 50 per call; use multiple calls for larger catalogs)","items":{"additionalProperties":false,"properties":{"kind":{"type":"string"},"payload":{"additionalProperties":{},"type":"object"},"refs":{"additionalProperties":false,"properties":{"entryIds":{"description":"Related entry ids, e.g. flow steps pointing to other entries","items":{"type":"string"},"type":"array"},"files":{"description":"Workspace-relative file paths where this fact lives","items":{"type":"string"},"type":"array"},"moduleName":{"description":"Module name from list-modules; per-entry override of batch moduleName","type":"string"}},"type":"object"},"summary":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"}},"required":["kind","title","summary"],"type":"object"},"maxItems":50,"type":"array"},"moduleName":{"description":"Default refs.moduleName for entries that omit refs.moduleName","type":"string"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId","entries"],"type":"object"},"name":"set-entries","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"entriesCreated":{"type":"number"},"entriesUpdated":{"type":"number"},"entryIds":{"items":{"type":"string"},"type":"array"},"message":{"type":"string"},"reminder":{"type":"string"},"suggestedModuleNames":{"items":{"type":"string"},"type":"array"},"warning":{"type":"string"}},"required":["entriesCreated","entriesUpdated","entryIds","message"],"type":"object"},"title":"Set Entries"},{"description":"Bulk delete entries matching kind/moduleName/tags filter. Requires confirm=true. Use before full re-import or to clear a module slice. Prefer replace-entries with deleteOrphans for idempotent sync.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"confirm":{"description":"Must be true to delete; safety guard against accidental bulk delete","type":"boolean"},"kind":{"description":"Exact entry kind","type":"string"},"kinds":{"description":"Entry kinds","items":{"type":"string"},"type":"array"},"moduleName":{"description":"Only entries linked to this module","type":"string"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"tags":{"description":"Entries having any of these tags","items":{"type":"string"},"type":"array"}},"required":["projectId","confirm"],"type":"object"},"name":"delete-entries","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"deleted":{"type":"number"},"message":{"type":"string"}},"required":["deleted","message"],"type":"object"},"title":"Delete Entries"},{"description":"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). Idempotent sync for up to 50 entries in scope; optionally delete orphans not in this batch. Match by upsertBy (default kind+title). For large catalogs use deleteOrphans=false on intermediate batches, true only on the last batch.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"deleteOrphans":{"description":"Delete scope entries missing from this batch (default true; set false until final batch)","type":"boolean"},"entries":{"description":"Batch slice for this scope (max 50; repeat calls for larger catalogs)","items":{"additionalProperties":false,"properties":{"kind":{"type":"string"},"payload":{"additionalProperties":{},"type":"object"},"refs":{"additionalProperties":false,"properties":{"entryIds":{"description":"Related entry ids, e.g. flow steps pointing to other entries","items":{"type":"string"},"type":"array"},"files":{"description":"Workspace-relative file paths where this fact lives","items":{"type":"string"},"type":"array"},"moduleName":{"description":"Module name from list-modules; per-entry override of batch moduleName","type":"string"}},"type":"object"},"summary":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"}},"required":["kind","title","summary"],"type":"object"},"maxItems":50,"type":"array"},"moduleName":{"description":"Default refs.moduleName for entries without refs.moduleName","type":"string"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"scope":{"additionalProperties":false,"description":"Which existing entries participate in orphan deletion","properties":{"kind":{"description":"Exact entry kind in scope","type":"string"},"kinds":{"description":"Entry kinds in scope","items":{"type":"string"},"type":"array"},"moduleName":{"description":"Only entries linked to this module","type":"string"},"tags":{"description":"Entries having any of these tags","items":{"type":"string"},"type":"array"}},"type":"object"},"upsertBy":{"description":"Fields used to match existing entries (default kind+title)","items":{"enum":["kind","title","id"],"type":"string"},"type":"array"}},"required":["projectId","scope","entries"],"type":"object"},"name":"replace-entries","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"created":{"type":"number"},"deleted":{"type":"number"},"entryIds":{"items":{"type":"string"},"type":"array"},"message":{"type":"string"},"updated":{"type":"number"}},"required":["created","updated","deleted","entryIds","message"],"type":"object"},"title":"Replace Entries"},{"description":"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). Alias for replace-entries (mode=replace). Pass filter as scope; send up to 50 entries per call.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"deleteOrphans":{"description":"Delete scope entries missing from this batch (default true; set false until final batch)","type":"boolean"},"entries":{"description":"Import batch (max 50 per call)","items":{"additionalProperties":false,"properties":{"kind":{"type":"string"},"payload":{"additionalProperties":{},"type":"object"},"refs":{"additionalProperties":false,"properties":{"entryIds":{"description":"Related entry ids, e.g. flow steps pointing to other entries","items":{"type":"string"},"type":"array"},"files":{"description":"Workspace-relative file paths where this fact lives","items":{"type":"string"},"type":"array"},"moduleName":{"description":"Module name from list-modules; per-entry override of batch moduleName","type":"string"}},"type":"object"},"summary":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"}},"required":["kind","title","summary"],"type":"object"},"maxItems":50,"type":"array"},"filter":{"additionalProperties":false,"description":"Scope filter (kind, moduleName, tags)","properties":{"kind":{"description":"Exact entry kind in scope","type":"string"},"kinds":{"description":"Entry kinds in scope","items":{"type":"string"},"type":"array"},"moduleName":{"description":"Only entries linked to this module","type":"string"},"tags":{"description":"Entries having any of these tags","items":{"type":"string"},"type":"array"}},"type":"object"},"mode":{"description":"Only replace mode is supported (full slice sync)","enum":["replace"],"type":"string"},"moduleName":{"description":"Default refs.moduleName for entries without refs.moduleName","type":"string"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"upsertBy":{"description":"Match keys (default kind+title)","items":{"enum":["kind","title","id"],"type":"string"},"type":"array"}},"required":["projectId","mode","filter","entries"],"type":"object"},"name":"import-entries","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"created":{"type":"number"},"deleted":{"type":"number"},"entryIds":{"items":{"type":"string"},"type":"array"},"message":{"type":"string"},"updated":{"type":"number"}},"required":["created","updated","deleted","entryIds","message"],"type":"object"},"title":"Import Entries"},{"description":"Dry-run validation for a proposed import batch (max 50 entries). 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). Checks duplicate upsert keys and unknown moduleName refs without writing.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"checkDuplicates":{"description":"Detect duplicate keys in batch (default true)","type":"boolean"},"checkModuleExists":{"description":"Warn on unknown refs.moduleName (default true)","type":"boolean"},"entries":{"description":"Proposed entries to validate (max 50)","items":{"additionalProperties":false,"properties":{"kind":{"type":"string"},"payload":{"additionalProperties":{},"type":"object"},"refs":{"additionalProperties":false,"properties":{"entryIds":{"description":"Related entry ids, e.g. flow steps pointing to other entries","items":{"type":"string"},"type":"array"},"files":{"description":"Workspace-relative file paths where this fact lives","items":{"type":"string"},"type":"array"},"moduleName":{"description":"Module name from list-modules; per-entry override of batch moduleName","type":"string"}},"type":"object"},"summary":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"}},"required":["kind","title","summary"],"type":"object"},"maxItems":50,"type":"array"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"upsertBy":{"description":"Match keys (default kind+title)","items":{"enum":["kind","title","id"],"type":"string"},"type":"array"}},"required":["projectId","entries"],"type":"object"},"name":"validate-import","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"valid":{"type":"boolean"},"warningCount":{"type":"number"},"warnings":{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"detail":{"type":"string"},"entryIndex":{"type":"number"}},"required":["code","detail"],"type":"object"},"type":"array"}},"required":["valid","warningCount","warnings"],"type":"object"},"title":"Validate Import"},{"description":"Returns entry counts grouped by kind, module, and tag. Use after replace-entries/import to verify catalog size.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId"],"type":"object"},"name":"get-import-stats","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"byKind":{"additionalProperties":{"type":"number"},"type":"object"},"byModule":{"additionalProperties":{"type":"number"},"type":"object"},"byTag":{"additionalProperties":{"type":"number"},"type":"object"},"total":{"type":"number"}},"required":["byKind","byModule","byTag","total"],"type":"object"},"title":"Get Import Stats"},{"description":"Returns one full entry by id. Use after list-entries or search-entries when you need payload and refs. Do not use for a full API list—use get-slice sliceId=api. Do not use for module structure—use get-module-details.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Entry id from list-entries or search-entries","type":"string"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId","id"],"type":"object"},"name":"get-entry","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"entry":{}},"type":"object"},"title":"Get Entry"},{"description":"Removes one entry and updates the index. Use when a fact is obsolete. Do not use to delete modules—use delete-module. Cannot delete slice definitions—use delete-slice.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"id":{"description":"Entry id to delete","type":"string"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId","id"],"type":"object"},"name":"delete-entry","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"message":{"type":"string"}},"required":["message"],"type":"object"},"title":"Delete Entry"},{"description":"Returns the entry catalog (id, kind, title, tags, moduleName)—no payload. Supports kind/moduleName/tags filters and pagination (limit max 200). Unlinked entries lack moduleName; run validate after edits. For typed horizontal views use get-slice.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"kind":{"description":"Filter by exact kind, e.g. http-endpoint","type":"string"},"limit":{"description":"Max items (default 50, max 200)","type":"number"},"moduleName":{"description":"Filter by refs.moduleName","type":"string"},"offset":{"description":"Skip first N matches (default 0)","type":"number"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"query":{"description":"Case-insensitive substring in title, kind, or tags","type":"string"},"tags":{"description":"Filter entries having any of these tags","items":{"type":"string"},"type":"array"}},"required":["projectId"],"type":"object"},"name":"list-entries","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"entries":{"type":"array"},"hasMore":{"type":"boolean"},"offset":{"type":"number"},"returned":{"type":"number"},"total":{"type":"number"}},"required":["entries","total","returned","offset","hasMore"],"type":"object"},"title":"List Entries"},{"description":"Compact navigation search over entries by title, summary, kind, and tags. Returns snippet, matchedIn, slices, and moduleName per hit—use get-entry for full payload. Prefer get-slice when you know the category (api, domain). Filters (moduleName, kind, tags) narrow agent context. Default limit 10.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"kind":{"description":"Exact filter on entry kind","type":"string"},"limit":{"description":"Max results per page (default 10, max 50)","type":"number"},"moduleName":{"description":"Exact filter on refs.moduleName","type":"string"},"offset":{"description":"Skip first N matches (default 0)","type":"number"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"query":{"description":"Search text","type":"string"},"tags":{"description":"Filter entries having any of these tags","items":{"type":"string"},"type":"array"}},"required":["projectId","query"],"type":"object"},"name":"search-entries","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"hasMore":{"type":"boolean"},"offset":{"type":"number"},"results":{"items":{"additionalProperties":false,"properties":{"id":{"type":"string"},"kind":{"type":"string"},"matchedIn":{"items":{"enum":["title","summary","kind","tags"],"type":"string"},"type":"array"},"moduleName":{"type":"string"},"refs":{"additionalProperties":false,"properties":{"entryIds":{"items":{"type":"string"},"type":"array"},"files":{"items":{"type":"string"},"type":"array"},"moduleName":{"type":"string"}},"type":"object"},"slices":{"items":{"type":"string"},"type":"array"},"snippet":{"type":"string"},"summary":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"}},"required":["id","kind","title","summary","snippet","matchedIn","slices","moduleName"],"type":"object"},"type":"array"},"returned":{"type":"number"},"summary":{"type":"string"},"total":{"type":"number"}},"required":["summary","total","returned","offset","hasMore","results"],"type":"object"},"title":"Search Entries"},{"description":"Lists built-in and custom slice views (filters over entries—not separate stored data). Empty slice = no entries with matching kind, not a missing slice definition. Use before get-slice to pick sliceId (api, domain, persistence, …).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"}},"required":["projectId"],"type":"object"},"name":"list-slices","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"slices":{"type":"array"}},"required":["slices"],"type":"object"},"title":"List Slices"},{"description":"Returns a horizontal project view: filtered entries transformed for agents. Empty slice = no entries with matching kind. Call list-slices first to pick sliceId. format=compact default; table for api/ui slice. Use offset/limit for pagination. Filter further by moduleName or tags.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"format":{"description":"compact=minimal list; detail=full entries; table=rows for API-like kinds (method/path columns)","enum":["compact","detail","table"],"type":"string"},"includeModuleContext":{"description":"If true, attach module name+description from architecture when refs.moduleName is set","type":"boolean"},"limit":{"description":"Max items (default 50, max 200)","type":"number"},"moduleName":{"description":"Filter by refs.moduleName","type":"string"},"offset":{"description":"Skip first N items after sort (default 0)","type":"number"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"query":{"description":"Further filter by substring in title, summary, kind, tags","type":"string"},"sliceId":{"description":"Built-in id (api, ui, domain, persistence, …) or custom id from list-slices","type":"string"},"tags":{"description":"Filter entries having any of these tags","items":{"type":"string"},"type":"array"}},"required":["projectId","sliceId"],"type":"object"},"name":"get-slice","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"slice":{}},"type":"object"},"title":"Get Slice"},{"description":"Saves a custom slice definition (filter only—no items). Items always live in entries. Use when built-in slices (api, domain, …) are not enough, e.g. filter kinds godot-scene + tag gameplay. Do not store duplicate entry text here. get-slice reads entries through this filter.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"When an agent should use this slice","type":"string"},"id":{"description":"Custom slice id (avoid colliding with built-in: api, domain, persistence, …)","type":"string"},"kinds":{"description":"Include entries with any of these kind values","items":{"type":"string"},"type":"array"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"tags":{"description":"Include entries having any of these tags","items":{"type":"string"},"type":"array"},"title":{"description":"Human-readable slice name","type":"string"}},"required":["projectId","id","title"],"type":"object"},"name":"set-slice","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"message":{"type":"string"},"sliceId":{"type":"string"}},"required":["sliceId","message"],"type":"object"},"title":"Set Slice"},{"description":"Deletes a custom slice definition only. Built-in slices (api, domain, …) cannot be deleted. Does not delete entries—use delete-entry.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"sliceId":{"description":"Custom slice id from list-slices","type":"string"}},"required":["projectId","sliceId"],"type":"object"},"name":"delete-slice","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"message":{"type":"string"}},"required":["message"],"type":"object"},"title":"Delete Slice"},{"description":"Preview or apply in-repo refactor sync to architector data (no workspace access). Default dryRun=true. Workflow: (1) scan with file/text to list hits, (2) build 1-3 mutation ops, (3) dryRun preview, (4) apply with dryRun=false and confirm=true. Mutations: move-file, replace-path-prefix, rename-text, patch-entry, merge-files, remove-file-ref. Orphan entries with empty refs.files and no entryIds are deleted. Does not change module names or dataFlow.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"confirm":{"description":"Required true when dryRun=false","type":"boolean"},"dryRun":{"description":"Preview only (default true). Set false with confirm=true to apply","type":"boolean"},"limit":{"description":"Max changes/hits per page (default 15, max 50)","type":"number"},"offset":{"description":"Pagination offset (default 0)","type":"number"},"operations":{"description":"Refactor operations (max 10 per call)","items":{"anyOf":[{"additionalProperties":false,"properties":{"file":{"type":"string"},"text":{"type":"string"},"type":{"const":"scan","type":"string"}},"required":["type"],"type":"object"},{"additionalProperties":false,"properties":{"from":{"type":"string"},"to":{"type":"string"},"type":{"const":"move-file","type":"string"}},"required":["type","from","to"],"type":"object"},{"additionalProperties":false,"properties":{"fromPrefix":{"type":"string"},"toPrefix":{"type":"string"},"type":{"const":"replace-path-prefix","type":"string"}},"required":["type","fromPrefix","toPrefix"],"type":"object"},{"additionalProperties":false,"properties":{"fields":{"items":{"enum":["title","summary","tags","payload","usageExamples"],"type":"string"},"minItems":1,"type":"array"},"from":{"type":"string"},"match":{"enum":["exact","contains"],"type":"string"},"to":{"type":"string"},"type":{"const":"rename-text","type":"string"}},"required":["type","from","to","fields","match"],"type":"object"},{"additionalProperties":false,"properties":{"match":{"additionalProperties":false,"properties":{"id":{"type":"string"},"kind":{"type":"string"},"title":{"type":"string"}},"type":"object"},"set":{"additionalProperties":false,"properties":{"payload":{"additionalProperties":{},"type":"object"},"refs":{"additionalProperties":false,"properties":{"entryIds":{"items":{"type":"string"},"type":"array"},"files":{"items":{"type":"string"},"type":"array"},"moduleName":{"type":"string"}},"type":"object"},"summary":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"}},"type":"object"},"type":{"const":"patch-entry","type":"string"}},"required":["type","match","set"],"type":"object"},{"additionalProperties":false,"properties":{"from":{"items":{"type":"string"},"minItems":1,"type":"array"},"to":{"type":"string"},"type":{"const":"merge-files","type":"string"}},"required":["type","from","to"],"type":"object"},{"additionalProperties":false,"properties":{"deleteIfEmpty":{"type":"boolean"},"file":{"type":"string"},"type":{"const":"remove-file-ref","type":"string"}},"required":["type","file"],"type":"object"}]},"maxItems":10,"minItems":1,"type":"array"},"projectId":{"description":"Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.","minLength":1,"type":"string"},"scope":{"additionalProperties":false,"description":"Optional filter: moduleName, kinds, tags","properties":{"kinds":{"items":{"type":"string"},"type":"array"},"moduleName":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array"}},"type":"object"}},"required":["projectId","operations"],"type":"object"},"name":"refactor-architecture","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"changes":{"items":{"additionalProperties":false,"properties":{"action":{"enum":["update","delete"],"type":"string"},"after":{},"before":{},"field":{"type":"string"},"id":{"type":"string"},"kind":{"type":"string"},"moduleName":{"type":"string"},"target":{"enum":["entry","module"],"type":"string"}},"required":["action","target","id","field"],"type":"object"},"type":"array"},"dryRun":{"type":"boolean"},"hasMore":{"type":"boolean"},"hits":{"items":{"additionalProperties":false,"properties":{"field":{"type":"string"},"id":{"type":"string"},"kind":{"type":"string"},"moduleName":{"type":"string"},"snippet":{"type":"string"},"target":{"enum":["entry","module"],"type":"string"},"value":{"type":"string"}},"required":["target","field","value","snippet"],"type":"object"},"type":"array"},"offset":{"type":"number"},"stats":{"additionalProperties":false,"properties":{"entriesDeleted":{"type":"number"},"entriesUpdated":{"type":"number"},"hits":{"type":"number"},"modules":{"type":"number"}},"required":["modules","entriesUpdated","entriesDeleted"],"type":"object"},"summary":{"type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["dryRun","summary","stats","changes","warnings","offset","hasMore"],"type":"object"},"title":"Refactor Architecture"}]}}}
