add_footnote
Add a footnote to a specific paragraph in a DOCX file, optionally inserting the reference after given text. Preserves existing formatting.
Instructions
Add a footnote anchored to a paragraph. Optionally position the reference after specific text using after_text. Note: [^N] markers in read_file output are display-only and not part of the editable text used by replace_text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the DOCX file. | |
| target_paragraph_id | Yes | Paragraph ID to anchor the footnote to. | |
| after_text | No | Text after which to insert the footnote reference. If omitted, appends at end of paragraph. | |
| text | Yes | Footnote body text. |