add_footnote
Add a footnote to any paragraph in a DOCX or ODT file. Optionally position the reference after specific text.
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. Surface: revisionable + package-mutation — the footnote reference and note text are tracked (w:ins), while footnote-part creation and registration are recorded in the save report non-revision change manifest.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"target_paragraph_id": "<target_paragraph_id>",
"text": "<text>"
},
"name": "add_footnote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Footnote body text. | |
| file_path | Yes | Path to the DOCX or ODT file. | |
| after_text | No | Text after which to insert the footnote reference. If omitted, appends at end of paragraph. | |
| target_paragraph_id | Yes | Paragraph ID to anchor the footnote to. |