docx-insertContent
Insert content blocks into Word documents at specified indexes using JSON schema. Query document structure and schema first to ensure accurate placement and formatting.
Instructions
Insert a block at index. Use docx-queryObjects first to see current structure, and docx-getSchema to understand block structure.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
block | Yes | ||
id | Yes | ||
index | Yes |
Input Schema (JSON Schema)
{
"properties": {
"block": {
"$ref": "docx:/$defs/Block"
},
"id": {
"type": "string"
},
"index": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"id",
"index",
"block"
],
"type": "object"
}