add_field
Insert a Word field such as PAGE or NUMPAGES at the end of a paragraph using its unique paragraph ID. Optionally include cached text for display.
Instructions
Insert a Word field at end of paragraph.
Common field codes: PAGE, NUMPAGES, DATE, SEQ Figure, REF MyBookmark, STYLEREF Heading.
Args: para_id: w14:paraId of the target paragraph. field_code: The field instruction text (e.g. "PAGE"). cached_value: Optional display text cached in the document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| para_id | Yes | ||
| field_code | Yes | ||
| cached_value | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |