Skip to main content
Glama

Edit part of a file

edit_block
Destructive

Replace exact text inside an existing text file. Safer than rewriting the whole file: it fails, and changes nothing, if old_string is not found or appears a different number of times than expected_replacements (default 1).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
deviceNoDevice name. Optional when the account has only one online device.
new_stringYesText to put in its place.
old_stringYesExact text to find (including whitespace). Must not be empty.
expected_replacementsNoHow many times old_string should appear. Default 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources