approve_change
Approves a single granular change (hunk) in a file, incorporating it into the baseline backup while leaving other changes pending for further review or rejection.
Instructions
Approves a single granular change (hunk) in a file.
What it does: Incorporates the specific change into the file's baseline backup, leaving other changes pending.
When to use: When one specific change in a file is approved, but other changes need further inspection or rejection.
Parameters:
- file_path: relative path to project root
- change_id: hunk ID (e.g. "h1", "h2") or line number
Returns:
JSON string with operation result and remaining changes.
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": {
"file_path": "<file_path>",
"change_id": "<change_id>"
},
"name": "approve_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| change_id | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |