replace_section
Replace the body of a Markdown section while preserving its heading. Update specific sections without affecting the rest of the file.
Instructions
Replace the body of a section, preserving its heading line.
The heading line is kept unchanged; only the body text is replaced. Returns "ok" on success.
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": "replace_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| file_path | Yes | ||
| new_content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |