word_add_footer
Set the text of a section's footer in a Word document. Target any section by index or clear the footer with an empty string.
Instructions
Set the text of a section's footer.
By default, only the first section's footer is updated; later
sections keep their own footers (VAL-WORD-062). Pass an
explicit section_index to target a different section.
Args:
path: Path to an existing .docx.
text: New footer text. An empty string clears the first
paragraph (VAL-WORD-061).
section_index: Zero-based section index (default 0).
folder: Optional base folder for relative paths.
Returns:
{"ok": True}.
Raises:
OfficeMCPError: ERR_INVALID_PARAMS for a non-int or
out-of-range section_index or a non-string text,
ERR_FILE_NOT_FOUND if the file is missing,
ERR_UNSUPPORTED_FMT for non-.docx extensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| text | Yes | ||
| section_index | No | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||