insert_file_content
Insert content at specific row(s) in a file using a Terminal Controller for MCP. Specify file path, content, and row(s) for precise modifications.
Instructions
Insert content at specific row(s) in a file
Args:
path: Path to the file
content: Content to insert (string or JSON object)
row: Row number to insert at (0-based, optional)
rows: List of row numbers to insert at (0-based, optional)
Returns:
Operation result information
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | ||
path | Yes | ||
row | No | ||
rows | No |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"title": "Content",
"type": "string"
},
"path": {
"title": "Path",
"type": "string"
},
"row": {
"default": null,
"title": "Row",
"type": "integer"
},
"rows": {
"default": null,
"items": {},
"title": "Rows",
"type": "array"
}
},
"required": [
"path",
"content"
],
"title": "insert_file_contentArguments",
"type": "object"
}