suggest_edit
Propose targeted code edits based on your intent, with optional auto-application for high-confidence changes to improve code quality.
Instructions
Propose targeted code edits from intent. apply=true auto-applies only high-confidence edits.
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>",
"intent": "<intent>"
},
"name": "suggest_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | The file to suggest edits for | |
| intent | Yes | What change do you want to make? | |
| context | No | Additional context for the edit (optional) | |
| maxSuggestions | No | Maximum suggestions to return (default: 5) | |
| apply | No | Apply edits automatically if confidence >= minConfidence (default: false) | |
| minConfidence | No | Minimum confidence 0-1 to auto-apply edits (default: 0.8) |