register_edit
Keep the index fresh after editing a file by notifying it. Reindexes the single file and checks for duplicate symbols to prevent logic duplication.
Instructions
Notify trace-mcp that a file was edited. Reindexes the single file and invalidates search caches. Call after Edit/Write to keep index fresh — much lighter than full reindex. Also checks for duplicate symbols — if _duplication_warnings appears in the response, you may be recreating existing logic; review the referenced symbols before continuing. Mutates the index; idempotent. Returns JSON: { status, file, totalFiles, indexed, _duplication_warnings? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Relative path to the edited file |