delete_file_content
Remove specified content from a file by deleting entire rows or specific substrings within rows, enabling precise file content management through Terminal Controller for MCP.
Instructions
Delete content at specific row(s) from a file
Args:
path: Path to the file
row: Row number to delete (0-based, optional)
rows: List of row numbers to delete (0-based, optional)
substring: If provided, only delete this substring within the specified row(s), not the entire row (optional)
Returns:
Operation result information
Input Schema
Name | Required | Description | Default |
---|---|---|---|
path | Yes | ||
row | No | ||
rows | No | ||
substring | No |
Input Schema (JSON Schema)
{
"properties": {
"path": {
"title": "Path",
"type": "string"
},
"row": {
"default": null,
"title": "Row",
"type": "integer"
},
"rows": {
"default": null,
"items": {},
"title": "Rows",
"type": "array"
},
"substring": {
"default": null,
"title": "Substring",
"type": "string"
}
},
"required": [
"path"
],
"title": "delete_file_contentArguments",
"type": "object"
}