Skip to main content
Glama

file_edit

Modify files in your workspace by replacing specific text strings. Search for unique text patterns and update them with new content, either individually or globally.

Instructions

Edit an existing file in the workspace using search and replace. The old_string must exist in the file and should be unique.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to the file, relative to the workspace directory
old_stringYesText to replace (must exist and be unique in the file)
new_stringYesReplacement text
replace_allNoReplace all occurrences instead of just the first

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/ephemeraldew/skill_mcp'

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