Skip to main content
Glama

MCP Terminal

by sichang824
MIT License
6
  • Apple
  • Linux

file_modify

Write or modify file content directly via MCP Terminal, supporting modes like overwrite, append, or insert. Specify filepath, content, and optional position for precise file editing.

Instructions

Writes content to a file

Input Schema

NameRequiredDescriptionDefault
contentYes
create_dirsNo
filepathYes
modeNooverwrite
positionNo

Input Schema (JSON Schema)

{ "$defs": { "WriteMode": { "description": "Enum representing different file writing modes.", "enum": [ "overwrite", "append", "insert" ], "title": "WriteMode", "type": "string" } }, "properties": { "content": { "title": "Content", "type": "string" }, "create_dirs": { "default": true, "title": "Create Dirs", "type": "boolean" }, "filepath": { "title": "Filepath", "type": "string" }, "mode": { "$ref": "#/$defs/WriteMode", "default": "overwrite" }, "position": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Position" } }, "required": [ "filepath", "content" ], "title": "file_modifyArguments", "type": "object" }

You must be authenticated.

Other Tools from MCP Terminal

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sichang824/mcp-terminal'

If you have feedback or need assistance with the MCP directory API, please join our Discord server