insert_to_file
Insert specified content into a file at a precise position using GonMCPtool. Supports previewing changes without modifying the file, ensuring accurate updates to your content.
Instructions
在檔案的特定位置插入新內容
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | 要插入的內容 | |
| dryRun | No | 預覽變更而不實際修改檔案 | |
| path | Yes | ||
| position | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"content": {
"description": "要插入的內容",
"type": "string"
},
"dryRun": {
"default": false,
"description": "預覽變更而不實際修改檔案",
"type": "boolean"
},
"path": {
"type": "string"
},
"position": {
"type": [
"number",
"string"
]
}
},
"required": [
"path",
"position",
"content"
],
"type": "object"
}