Terminal Controller for MCP

by GongRzhe
Verified

delete_file_content

Delete specific rows or substrings within rows in a file using a 0-based row index or list of rows. Specify a path to the file and optionally a substring to remove only partial content.

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

NameRequiredDescriptionDefault
pathYes
rowNo
rowsNo
substringNo

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" }

You must be authenticated.

Other Tools from Terminal Controller for MCP

Related Tools

ID: i59xcpycnh