docx-editContent
Modify specific content blocks in Word documents by index using JSON schema. Identify blocks with docx-queryObjects and understand structure via docx-getSchema for precise edits.
Instructions
Replace a block at index. Use docx-queryObjects first to see available blocks, 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"
}