patch_section
Generate a unified diff of changes to a Markdown section without applying them, allowing preview of what replace_section would do.
Instructions
Return a unified diff of what replace_section would do, without writing.
Useful for previewing changes before committing them. Returns the unified diff as a string (empty string if no changes).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"path": "<path>",
"new_content": "<new_content>"
},
"name": "patch_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| file_path | Yes | ||
| new_content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |