Skip to main content
Glama

MCP SmallEdit

by MikeyBeez

line_edit

Modify specific lines in a file by number or range using actions like replace, delete, or insert. Streamline targeted file edits without full replacement.

Instructions

Edit specific lines by number or range

Input Schema

NameRequiredDescriptionDefault
actionYesAction to perform
contentNoNew content (for replace/insert actions)
fileYesFile to edit
lineNumberNoLine number to edit (1-based)
lineRangeNoLine range (e.g., "10,20" or "5,$")

Input Schema (JSON Schema)

{ "properties": { "action": { "description": "Action to perform", "enum": [ "replace", "delete", "insert_after", "insert_before" ], "type": "string" }, "content": { "description": "New content (for replace/insert actions)", "type": "string" }, "file": { "description": "File to edit", "type": "string" }, "lineNumber": { "description": "Line number to edit (1-based)", "type": "number" }, "lineRange": { "description": "Line range (e.g., \"10,20\" or \"5,$\")", "type": "string" } }, "required": [ "file", "action" ], "type": "object" }

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/MikeyBeez/mcp-smalledit'

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