add_section
Add a heading and body content as a new section to an existing Word document. The document is updated in place.
Instructions
Append a new section (heading + body content) to the end of an existing .docx document. The document is updated in place.
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": {
"filePath": "<filePath>",
"heading": "<heading>",
"content": "<content>"
},
"name": "add_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the existing .docx file | |
| heading | Yes | Section heading text | |
| content | Yes | Section body content (markdown supported) | |
| headingLevel | No | Heading level: 1 = H1 (largest) through 6 = H6 (smallest). Default: 2 |