{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "input": {
      "type": "string",
      "minLength": 1,
      "x-tiwater-file-role": "read", "x-tiwater-document-revision-role": "current"
    },
    "changes": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "target": {
            "type": "object",
            "properties": {
              "part": {
                "type": "string",
                "minLength": 1,
                "pattern": "^\\/"
              },
              "path": {
                "type": "string",
                "pattern": "^\\/[A-Za-z_][A-Za-z0-9_.-]*:[A-Za-z_][A-Za-z0-9_.-]*\\[[1-9][0-9]*\\](?:\\/[A-Za-z_][A-Za-z0-9_.-]*:[A-Za-z_][A-Za-z0-9_.-]*\\[[1-9][0-9]*\\])*$"
              }
            },
            "required": [
              "part",
              "path"
            ],
            "additionalProperties": false
          },
          "text": {
            "type": "string"
          },
          "fontName": {
            "type": "string",
            "minLength": 1,
            "description": "Optional Latin and complex-script font family for the replacement run. East Asian font settings remain inherited from the target."
          }
        },
        "required": [
          "target",
          "text"
        ],
        "additionalProperties": false
      }
    },
    "changesInput": {
      "type": "string",
      "minLength": 1,
      "description": "Absolute path to a JSON file containing the same non-empty changes array accepted by changes. Use this for large batches so the array stays out of the tool call.",
      "x-tiwater-file-role": "read"
    },
    "output": {
      "type": "string",
      "minLength": 1,
      "description": "Output DOCX path; may equal input for an atomic in-place update.",
      "x-tiwater-file-role": "write"
    },
    "receiptOutput": {
      "type": "string",
      "minLength": 1,
      "x-tiwater-file-role": "write",
      "x-tiwater-file-effect": false
    }
  },
  "required": [
    "input",
    "output",
    "receiptOutput"
  ],
  "additionalProperties": false,
  "$id": "tiwater.office-mcp-input/docx_set_text"
}
