Propose an edit to one file (published for review)
propose_editApplies exact search/replace edits to one existing project file and publishes the result as a reviewable proposal, reporting whether it was applied or needs human acceptance.
Instructions
Applies search/replace edits to a scratch copy of ONE existing text file and publishes the result as a proposal. It never edits the document directly: the change is published for review — if this project has agent auto-accept armed it may apply automatically (the response says status "applied"), otherwise it awaits a human Accept in Galley. Inspect the returned status to know what happened. Each search must match the file's current text exactly once; failures come back as structured data (status: "edit_failed") — refine and retry. To create, rename or delete files, or to change several at once, use propose_files.
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": {
"project": "<project>",
"path": "<path>",
"request": "<request>",
"edits": "<edits>"
},
"name": "propose_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Exact path of the EXISTING file to edit (as listed by list_files). | |
| edits | Yes | Search/replace blocks, applied in order against the running text. | |
| project | Yes | The projectId of the project to work on, as returned by list_projects. | |
| request | Yes | A short human-readable title for the change (shown in the review card). |