autopilot_apply_fixes
Apply verified line-level code fixes to source files with backups, project-scope checks, and automatic rollback if compile errors increase.
Instructions
Apply a list of fixes to source files safely. Each fix specifies a file path, line number, the original line content (for verification), and the replacement. Files are backed up before modification and scope-checked against the project path.
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_path": "<project_path>",
"fixes": "<fixes>"
},
"name": "autopilot_apply_fixes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fixes | Yes | List of fixes to apply | |
| project_path | Yes | Absolute path to .xcodeproj or .xcworkspace (used for scope validation) |