vibemap_submit_code_map
Submit a structural code map of your codebase to VibeMap. Define nodes for pages, APIs, models, and edges for imports, routes, reads, writes.
Instructions
Submit a structural code map of the user's codebase to VibeMap (rendered on the project's Codebase tab). Build it yourself from your codebase access: one node per meaningful unit (page/route, API endpoint, data model, service, module, config), edges for imports/routes/reads/writes. Node kinds: page|api|model|service|module|config. Layers: ui|api|data|services|shared. Edge kinds: imports|routes|reads|writes. Use repo-relative paths as node ids. Max 500 nodes — aggregate small files into their module. Re-submitting replaces the project's map and resets it to draft for the user to re-confirm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map | Yes | { nodes: [{id,label,kind,path,layer,summary?}], edges: [{source,target,kind}], stats?: {totalFiles,scannedAt} } | |
| anchor | No | Optional sync anchor: { commitSha?, scannedAt? } (git rev-parse HEAD) | |
| projectId | Yes | VibeMap project to attach the map to |