edit_tutorial
Replace an exact, unique text string in an existing tutorial to make targeted edits without rewriting the full document.
Instructions
Make a targeted edit to an existing tutorial by replacing an exact piece of text. The old text must appear exactly once.
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": {
"path": "<path>",
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "edit_tutorial"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Tutorial path relative to the docs folder | |
| new_text | Yes | Replacement text | |
| old_text | Yes | Exact text to replace (must be unique in the file) | |
| commit_message | No |