register_edit
Notify trace-mcp of a file edit to reindex and invalidate caches. Checks for duplicate symbols to prevent recreating existing logic.
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 |