tools

Patch one file by replacing exact text

Patch one file by replacing exact text. Safer than full overwrite for targeted edits. Creates a Saved Version before changing content. Paths follow the Fine Structure app file API, documented at https://finestructure.ai/api/mcp/docs.

post/api/mcp/tools/patch_app_file

Request

  • Base URL: https://finestructure.ai
  • URL: https://finestructure.ai/api/mcp/tools/patch_app_file
  • Auth: HTTP bearer

Request body

app_idstring required

The app ID

pathstring required

Virtual file path

old_textstring required

Exact existing text to replace

new_textstring required

Replacement text

replace_allboolean

Replace all matches instead of the first match

Response

Tool executed successfully

okboolean required
toolstring required
resultobject required

Changes

No recorded changes to this operation across all 2 revisions of this API.