Aller au contenu

mark_code_scan_finding_treated

Record that a hardcoded string has been internationalized: mark ONE finding treated and store the key you created for it. Call this ONLY after the key really exists and the source actually renders it through the i18n runtime: this tool writes the audit trail, it does not create the key and does not touch the code. key is the key you created, namespace-qualified (e.g. common:app.save). Idempotent: re-marking an already-treated finding just returns it. Addresses the finding by its uuid from list_code_scan_findings. An unknown finding is refused rather than silently ignored.

NomTypeDescription
project_uuidstringoptionnelProject UUID. Required when multiple projects are configured (SONENTA_PROJECTS); defaults to the single configured project otherwise.
finding_idstringrequisThe finding's uuid, as returned by list_code_scan_findings.
keystringrequisThe key that now carries this string, namespace-qualified (e.g. common:app.save). Recorded as treated_key.
{
"tool": "mark_code_scan_finding_treated",
"arguments": {
"finding_id": "<finding_id>",
"key": "<key>"
}
}