ateam_github_patch
Edit files in a GitHub repository and commit changes. Supports full file replacement or surgical search/replace edits. Defaults to dev branch; use main only for hotfixes.
Instructions
Edit a file in the solution's GitHub repo and commit. Two modes:
FULL FILE: provide
content— replaces entire file (good for new files or small files)SEARCH/REPLACE: provide
search+replace— surgical edit without sending full file (preferred for large files like server.js) Always use search/replace for large files (>5KB). Always read the file first with ateam_github_read to get the exact text to search for.
DEFAULTS TO dev BRANCH — writes don't touch prod. Use ateam_github_promote to ship dev→main when ready. Pass ref:'main' only for emergency hotfixes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| solution_id | Yes | The solution ID | |
| path | Yes | File path to create/update (e.g. 'connectors/home-assistant-mcp/server.js') | |
| content | No | The full file content to write (mode 1 — full file replacement) | |
| search | No | Exact text to find in the file (mode 2 — search/replace). Must match exactly including whitespace. | |
| replace | No | Text to replace the search string with (mode 2 — required with search) | |
| message | No | Optional commit message (default: 'Update <path>') | |
| ref | No | Target branch. Default: 'dev' (safe — won't touch prod). Use 'main' only for emergency hotfixes. | dev |