add_field
Insert a Word field (e.g., PAGE, DATE, SEQ) at the end of a specified paragraph to pull in dynamic content.
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.
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": {
"para_id": "<para_id>",
"field_code": "<field_code>"
},
"name": "add_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| para_id | Yes | ||
| field_code | Yes | ||
| cached_value | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |