edit_document
Modify line sequences in markdown documents by replacing specified text. Generates a git-style diff to track changes and supports dry-run for testing edits. Ideal for precise document updates.
Instructions
Make line-based edits to a markdown document. Each edit replaces exact line sequences with new content. Returns a git-style diff showing the changes made.
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| dryRun | No | ||
| edits | Yes | ||
| path | Yes | 
Input Schema (JSON Schema)
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "properties": {
    "dryRun": {
      "default": false,
      "type": "boolean"
    },
    "edits": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "newText": {
            "type": "string"
          },
          "oldText": {
            "type": "string"
          }
        },
        "required": [
          "oldText",
          "newText"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "path": {
      "type": "string"
    }
  },
  "required": [
    "path",
    "edits"
  ],
  "type": "object"
}