edit_file
Replace exact text in a file on a local or remote homelab host; the target text must occur once and client approval is required.
Instructions
Replace text in a file. WRITE action — your MCP client will ask for approval before running it. old_text must occur exactly once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Server name from HOMELAB_HOSTS (e.g. 'sil-baru'). Omit to run on the local machine. | |
| path | Yes | Absolute path inside HOMELAB_PROJECT_DIRS (e.g. '/home/user/projects/api') | |
| new_text | Yes | Replacement text | |
| old_text | Yes | Exact text to find (must occur exactly once) |