correct_ocr
Replace a stored capture's incorrect OCR transcription with corrected text, then re-run parsing, tag extraction, and connection detection so search uses the fixed version.
Instructions
Replace a stored capture's transcription with corrected text.
Use this when a capture's OCR came out wrong — for example a Tesseract
read of handwriting, or a transcription typo. The original OCR text is
preserved in the database; the corrected text becomes what search, tag
extraction, and connection detection use from now on.
Re-runs template parsing, tag extraction, and connection detection on the
corrected text.
Args:
capture_id: The numeric capture ID (shown as #N in upload output and
search results). Not the template ID.
text: The full corrected transcription of the page, including
field labels and all schema tags.
Returns a summary of the re-parsed capture and rebuilt connections.
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": {
"capture_id": "<capture_id>",
"text": "<text>"
},
"name": "correct_ocr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| capture_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |