Skip to main content
Glama

fast_edit_block

Replace exact text blocks in files with safety controls for backups, previews, and match validation.

Instructions

Precise block editing: safely replace exact matches (desktop-commander style)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath of the file to edit
old_textYesExact existing text to match (include minimal context)
new_textYesReplacement text
expected_replacementsNoExpected number of replacements (safety guard)
backupNoCreate a backup
word_boundaryNoEnforce word boundaries (prevents partial matches)
preview_onlyNoPreview only (don’t modify the file)
case_sensitiveNoMatch case sensitively

Latest Blog Posts

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/efforthye/fast-filesystem-mcp'

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