[
  {
    "name": "guide",
    "description": "Read the full MCP manual.",
    "inputSchema": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "get_state",
    "description": "Inspect the live editor state.",
    "inputSchema": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "get_document",
    "description": "Read the current body HTML and visible text.",
    "inputSchema": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": true,
      "destructiveHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "new_document",
    "description": "Replace the current document and reset history; requires explicit discard for unsaved edits.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Document title"
        },
        "discard_changes": {
          "type": "boolean"
        }
      },
      "required": [],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "open_document",
    "description": "Open a UTF-8 HTML or text document, replacing the current document.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "description": "Absolute input path"
        },
        "discard_changes": {
          "type": "boolean"
        }
      },
      "required": [
        "path"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "save_document",
    "description": "Write an HTML copy; preserve the current file handle and dirty flag. Existing files require overwrite:true.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "description": "Absolute HTML output path"
        },
        "overwrite": {
          "type": "boolean"
        }
      },
      "required": [
        "path"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": true,
      "openWorldHint": false
    }
  },
  {
    "name": "select",
    "description": "Select all, or UTF-16 offsets across text nodes (no synthetic block separators).",
    "inputSchema": {
      "type": "object",
      "properties": {
        "all": {
          "type": "boolean"
        },
        "start": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        },
        "end": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        }
      },
      "required": [],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "insert_content",
    "description": "Insert sanitized HTML or plain text at the selection, in one undo step.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "html": {
          "type": "string",
          "description": "HTML fragment"
        },
        "text": {
          "type": "string",
          "description": "Plain text"
        }
      },
      "required": [],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "replace_document",
    "description": "Replace body content with sanitized HTML in one undoable edit.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "html": {
          "type": "string",
          "description": "HTML body fragment"
        }
      },
      "required": [
        "html"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "format",
    "description": "Format the selection/caret. Toggle actions need no value; font_size is in points.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string",
          "enum": [
            "bold",
            "italic",
            "underline",
            "strike",
            "superscript",
            "subscript",
            "align",
            "font_size",
            "font_family",
            "color",
            "highlight",
            "clear"
          ]
        },
        "value": {
          "type": [
            "string",
            "number"
          ]
        }
      },
      "required": [
        "action"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "insert_table",
    "description": "Insert a table at the caret.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "rows": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "columns": {
          "type": "integer",
          "minimum": 1,
          "maximum": 20
        }
      },
      "required": [
        "rows",
        "columns"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "page_setup",
    "description": "Change page setup outside content undo history.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "size": {
          "type": "string",
          "enum": [
            "a4",
            "letter",
            "legal",
            "a5"
          ]
        },
        "orientation": {
          "type": "string",
          "enum": [
            "portrait",
            "landscape"
          ]
        },
        "margins": {
          "type": "string",
          "enum": [
            "normal",
            "narrow",
            "moderate",
            "wide"
          ]
        }
      },
      "required": [],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "history",
    "description": "Inspect or navigate undo history.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string",
          "enum": [
            "list",
            "undo",
            "redo",
            "jump"
          ]
        },
        "index": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2147483647
        }
      },
      "required": [],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "view",
    "description": "Set the live window zoom.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "zoom": {
          "type": "number",
          "minimum": 0.25,
          "maximum": 3
        }
      },
      "required": [
        "zoom"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "openWorldHint": false
    }
  },
  {
    "name": "agent_control",
    "description": "Enable or disable this session HTTP access. Stdio remains available.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "enabled"
      ],
      "additionalProperties": false
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "openWorldHint": false
    }
  }
]
