suggest_fix
Generate a diff-style metadata or code fix suggestion for an Agentforce security violation using rule ID and file path.
Instructions
Given a specific Agentforce violation (rule ID + file), generate a suggested metadata or code fix. Returns a diff-style suggestion.
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": {
"ruleId": "<ruleId>",
"filePath": "<filePath>"
},
"name": "suggest_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleId | Yes | The violated rule ID | |
| filePath | Yes | Path to the file to fix | |
| violationContext | No | Additional context about the violation (e.g., the specific action or template name) |