insert_if_field
Insert a conditional IF field at the end of a Word paragraph to display different text based on whether a condition is true or false.
Instructions
Insert a Word IF conditional field at the end of a paragraph.
Args: para_id: w14:paraId of the target paragraph. condition: The condition expression (e.g. "x > 0"). true_text: Text to display when condition is true. false_text: Text to display when condition is false.
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>",
"condition": "<condition>",
"true_text": "<true_text>",
"false_text": "<false_text>"
},
"name": "insert_if_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| para_id | Yes | ||
| condition | Yes | ||
| true_text | Yes | ||
| false_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |