note_add
Add a tracked footnote or endnote at a body offset, creating the notes part if missing; rejecting the insertion removes the note.
Instructions
Add a footnote or endnote at a body offset: the reference mark and the note text are both tracked insertions, so rejecting them removes the note. Creates the notes part when the document has none. Returns the note's id, displayed number and address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | Body point p3#fp:10-10 (the mark goes after the offset), a range inside one paragraph (after it) or a paragraph (at its end). | |
| doc | Yes | Path to the .docx. | |
| tag | No | Appended to the author. | |
| kind | Yes | ||
| text | Yes | The note text, one line. | |
| author | No | Revision author. | |
| expect | No | ||
| dry_run | No | Preview only; write nothing. |