repair_reply
Fix a seat's unreadable reply in a paused run by correcting JSON punctuation, restoring flagged rows, or fixing objection IDs, so the run resumes.
Instructions
For a run paused for a REPAIR (external_prompt shows repair with its kind): a seat's paid reply could not be read, and THC asks for it to be repaired, never rewritten. Give exactly one of: text, the same reply with only its JSON punctuation fixed (kind near_json; THC takes it only if every word is the same, in the same order); restore_rows, the numbers of the rows the pause flagged (the rows whose words did not fit the criterion at their position), whose criterion text THC sets to the exact text of the criterion at that row's position (kind table_rows; nothing else in the reply changes, a row the seat did not write is never added, and no criterion gets two rows); ids, pairs { from, to } from the request, each an objection id the seat wrote one character off and the id it was shown (kind id_slip; nothing else in the reply changes); or decline: true, which puts the original reply back unchanged, so the stage is read as it would be without a repair. THC writes the repaired reply, keeps the original in the run folder, and resumes the run once no stage is left waiting. A stage is repaired once.
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": {
"run": "<run>",
"stage": "<stage>"
},
"name": "repair_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | pairs { from, to } as the request names them (kind id_slip only) | |
| run | Yes | ||
| text | No | the seat's reply with its JSON fixed and no word changed (kind near_json only) | |
| stage | Yes | ||
| decline | No | true to put the original reply back unchanged | |
| restore_rows | No | the row numbers the pause flagged, from 1 (kind table_rows only) |