lexicon_add
Correct recurring caption misspellings by pairing the whispered word with the canonical spelling. Applies to all matching occurrences while leaving the transcript unchanged.
Instructions
Keep a standing spelling correction: captions print canonical wherever whisper wrote heard.
The fix for a caption that shows whisper's spelling ("rough" for "ruff",
"Pup BNB" for a brand). Whole words, one or several: a multi-word key
merges its words into one caption word. Every occurrence, so narrow one
by including a neighbouring word. Display only; the transcript and
verify are untouched. The reply counts the caption words it changes now.
Undo does not revert it: the lexicon is a preference kept beside the
project, not an edit. Remove an entry with lexicon_rm. kind="say" is
vo_synth's pronunciation respelling instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | `hear` (default): a caption correction, also folded out of `vo_synth`'s WER. `say`: a respelling `vo_synth` gives the voice model. | hear |
| path | No | The project directory to act on. Omit it — the usual case — when this server is bound to a project (started as `proofcut -C DIR mcp`, or inside a project; `ping` says which): it then resolves to that one bound project, a relative path resolves against it, and a path outside it is refused by name. Unbound, `path` is the whole address and omitting it refuses rather than guessing. | |
| plan | No | Resolve the whole call and report what it would do, writing nothing. Prefer it over doing the thing and undoing it. | |
| heard | Yes | The words as whisper spelled them, one or several (`rough`, `pup bnb`). Matched as whole words, case and edge punctuation aside, at every occurrence; carry a neighbouring word to narrow it to one place. | |
| canonical | Yes | What to print instead (`hear`) or what the voice model is given (`say`). Written as it should appear: `PupBnB` keeps its capitals. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||