Fix instructions
yof_fix_promptWrite step-by-step instructions to fix one finding (pass finding_id) or one kind of problem (pass rule_id), with any secret shown only as a prefix plus REDACTED. Use it after yof_findings; use yof_explain for background on a rule, and yof_verify after the fix. With finding_id it reads that stored finding (file, line, app address) to make the steps specific; one of the two ids is required. Returns rule and instructions, plus finding_id when one was passed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "yof_fix_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the rule titles and plain-word text, as a two-letter code. Default en. | |
| builder | No | The tool the code is built with, so the steps fit it: lovable, cursor, v0, bolt, replit or generic. Default generic. | |
| rule_id | No | A rule id, for general steps when there is no finding id. | |
| finding_id | No | A finding id from yof_findings. Takes priority over rule_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | No | Rule id. | |
| error | No | Only on a failed call (isError true): what went wrong. | |
| finding_id | No | The finding id, when one was passed. | |
| instructions | No | The fix instructions, ready to follow. |