repo_write
Create or completely overwrite a file in your local repo with full content, including parent directories. Requires a chatgpt/ branch, so start one first, then review changes with git_diff before pushing.
Instructions
Create or overwrite one file with the given full content (no patching or appending); parent directories are created. Refused unless the current branch starts with 'chatgpt/', so call branch_start first; the base branch is never written. Changes stay local and uncommitted until commit_push. Review them with git_diff.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"content": "<content>"
},
"name": "repo_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Repo-relative file path (e.g. 'src/app.py'). Paths escaping the repo root or under deny_paths are refused. | |
| content | Yes | Complete new file content (UTF-8). Replaces the whole file. |