codeLineInsert
Insert content into a specified line of a code file, shifting existing content downward. Works with the GonMCPtool MCP server for precise code modifications without altering formatting unnecessarily.
Instructions
每次使用前、使用後必須先使用(codeFileRead)。在程式碼檔案指定行插入內容,原內容將向下移動。(如果不影響編譯器的話,不需要針對縮排等小問題修改。提醒User就好了)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | ||
filePath | Yes | ||
indentToMatch | No | ||
lineNumber | Yes |
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"
}