Terminal Controller for MCP

by GongRzhe
Verified

update_file_content

Modify specific rows within a file by updating or replacing content, including targeted substrings, using a precise row-based approach for efficient file editing.

Instructions

Update content at specific row(s) in a file Args: path: Path to the file content: New content to place at the specified row(s) row: Row number to update (0-based, optional) rows: List of row numbers to update (0-based, optional) substring: If provided, only replace this substring within the specified row(s), not the entire row Returns: Operation result information

Input Schema

NameRequiredDescriptionDefault
contentYes
pathYes
rowNo
rowsNo
substringNo

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" }, "substring": { "default": null, "title": "Substring", "type": "string" } }, "required": [ "path", "content" ], "title": "update_file_contentArguments", "type": "object" }

You must be authenticated.

Other Tools from Terminal Controller for MCP

Related Tools

ID: i59xcpycnh