Skip to content

Commit 1725c29

Browse files
committed
feat(file): update edit tool documentation to include Markdown file support
1 parent 417d0b0 commit 1725c29

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/tools/file/file-edit.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const edit = defineTool({
3838
'- `startLine` / `endLine` — Fallback line-based range (1-indexed)\n\n' +
3939
'**EXAMPLES:**\n' +
4040
'- Edit a method: `{ file: "src/service.ts", target: "UserService.findById", code: "..." }`\n' +
41+
'- Edit a section: `{ file: "README.md", target: "Installation", code: "..." }`\n' +
4142
'- Edit by lines: `{ file: "src/config.ts", startLine: 10, endLine: 25, code: "..." }`\n' +
4243
'- Replace full file: `{ file: "src/types.ts", code: "..." }`',
4344
timeoutMs: 30_000,
@@ -58,7 +59,7 @@ export const edit = defineTool({
5859
),
5960
target: zod.string().optional().describe(
6061
'Symbol name to scope the edit: "UserService.findById". ' +
61-
'Only supported for TS/JS family files (.ts, .tsx, .js, .jsx, .mts, .mjs, .cts, .cjs).',
62+
'Supported for TS/JS (.ts, .tsx, .js, .jsx, .mts, .mjs, .cts, .cjs) and Markdown (.md, .markdown) files.',
6263
),
6364
startLine: zod.number().int().optional().describe(
6465
'Fallback: start line (1-indexed). Used when target is not specified.',

0 commit comments

Comments
 (0)