word_set_headings
Set or clear heading levels (1-9) on targeted paragraphs in a .docx file by specifying paragraph IDs and desired levels. Modify multiple paragraphs at once in a single operation.
Instructions
Set or clear a heading style on paragraphs by paraId
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>",
"edits": "<edits>"
},
"name": "word_set_headings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | Heading levels to apply, per paragraph, in one pass | |
| file_path | Yes | Absolute path to the .docx file |