GonMCPtool

codeLineInsert

Insert content at a specific line in a code file using the MCP server tool. Automatically shifts existing content downward, allowing precise code edits without manual adjustments.

Instructions

每次使用前、使用後必須先使用(codeFileRead)。在程式碼檔案指定行插入內容,原內容將向下移動。(如果不影響編譯器的話,不需要針對縮排等小問題修改。提醒User就好了)

Input Schema

NameRequiredDescriptionDefault
contentYes
filePathYes
indentToMatchNo
lineNumberYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "content": { "type": "string" }, "filePath": { "type": "string" }, "indentToMatch": { "type": "boolean" }, "lineNumber": { "type": "number" } }, "required": [ "filePath", "lineNumber", "content" ], "type": "object" }
ID: 8xcb3w59pl