MCP-PIF Server

write

Write or modify file content

Input Schema

NameRequiredDescriptionDefault
contentNoContent to write
editsNoArray of edits for edit operation
lineNumberNoLine number for replace operation
operationYesType of write operation to perform
pathYesPath for the file to write/modify

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "Content to write", "type": "string" }, "edits": { "description": "Array of edits for edit operation", "items": { "properties": { "newText": { "description": "New text to insert", "type": "string" }, "oldText": { "description": "Text to replace", "type": "string" } }, "required": [ "oldText", "newText" ], "type": "object" }, "type": "array" }, "lineNumber": { "description": "Line number for replace operation", "type": "number" }, "operation": { "description": "Type of write operation to perform", "enum": [ "write", "append", "replace", "edit" ], "type": "string" }, "path": { "description": "Path for the file to write/modify", "type": "string" } }, "required": [ "path", "operation" ], "type": "object" }