mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
docs: Improve MCP tool descriptions for clarity and completeness
- smart_search: Condense verbose description from 40 to 12 lines while preserving key usage examples - write_file: Add missing createDirectories parameter documentation - edit_file: Clarify update/line mode naming and add batch edit examples 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -415,13 +415,17 @@ function executeLineMode(content: string, params: Params): LineModeResult {
|
||||
// Tool schema for MCP
|
||||
export const schema: ToolSchema = {
|
||||
name: 'edit_file',
|
||||
description: `Edit file by text replacement or line operations.
|
||||
description: `Edit file using two modes: "update" for text replacement (default) and "line" for line-based operations.
|
||||
|
||||
Usage:
|
||||
Usage (update mode):
|
||||
edit_file(path="f.js", oldText="old", newText="new")
|
||||
edit_file(path="f.js", mode="line", operation="insert_after", line=10, text="new line")
|
||||
edit_file(path="f.js", edits=[{oldText:"a",newText:"b"},{oldText:"c",newText:"d"}])
|
||||
|
||||
Options: dryRun=true (preview diff), replaceAll=true (replace all occurrences)`,
|
||||
Usage (line mode):
|
||||
edit_file(path="f.js", mode="line", operation="insert_after", line=10, text="new line")
|
||||
edit_file(path="f.js", mode="line", operation="delete", line=5, end_line=8)
|
||||
|
||||
Options: dryRun=true (preview diff), replaceAll=true (update mode only)`,
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
|
||||
Reference in New Issue
Block a user