Edit a Finding’s Source string
edit_source_stringPut your own wording of the Source string an open Finding is on into the run’s Edit set, as a Source string edit: it changes only the wording (placeholders and markup stay), replaces an edit of that string already there, and removes the string’s unapplied translation edits. Nothing changes until the Edit set is applied. Text equal to a Finding’s suggested rewrite accepts it, as accept_finding_rewrites does. Refused FINDING_NOT_FOUND, FINDING_NOT_OPEN, RUN_EDIT_UNCHANGED (the text is the current one), SOURCE_EDIT_STRUCTURE_CHANGED, SOURCE_EDIT_UNSUPPORTED or JOB_NOT_EDITABLE (the run takes no Source string edit now). When referring to a project or language in your reply to the user, use its name and locale (e.g. "French (fr-FR)") — ids (UUIDs) are for tool calls only, never show them to the user.
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": {
"runId": "<runId>",
"findingId": "<findingId>",
"text": "<text>"
},
"name": "edit_source_string"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The string’s new source-language wording | |
| runId | Yes | Run id, from get_workflow_run or list_workflow_runs | |
| findingId | Yes | An open Finding on the string, from list_run_findings |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| editId | Yes | The edit in the Edit set: what discard_edit takes | |
| removedTargetEdits | Yes | The string’s unapplied translation edits it removed, whose text it replaces |