history_search
Find quotes in a Word document's undo log, edit requests, and nearby paragraph text, returning exact or folded hits with offsets and match levels.
Instructions
Find a quote in the undo log: in the requests, and in the text of every paragraph before and after each write. Exact unless match_level folds it; then every hit, with its offsets and the level it matched at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Path to the .docx. | |
| limit | No | ||
| query | Yes | Text to find. | |
| store | No | A store folder (see history.orphans) to read instead of the document's own. | |
| ignore_case | No | ||
| match_level | No | Fold the search as `find` does: `default` ignores case, accents and punctuation (symbols such as `$` still count), `loose` drops symbols too; `exact` keeps the flags. When passed, Word's Find codes in `query` are read as their characters, every hit in a text is returned (not only the first, `exact` included), each with `start` and `end` (its offsets in that text: the request's JSON or the paragraph before or after the write, as `in` names it; not offsets into the cut `text`), `match_level` (the strictest level it meets) and `text` cut around it, and the reply gains `matches_by_level`, adding up to `total`. Without it, the first hit per text, with no `start`, `end` or level. Not with `ignore_case` or `ignore_accents` false at a folded level. | |
| ignore_accents | No |