PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
Describe the shared-output refusal in the batch OCR tool description
eliets239918c466a6d
diff --git a/crates/automation/src/tools.rs b/crates/automation/src/tools.rsindex 4fff59c07..3afa408ea 100644--- a/crates/automation/src/tools.rs+++ b/crates/automation/src/tools.rs@@ -1184,7 +1184,7 @@ pub fn tools() -> Vec<ToolDef> {}),&["doc"],)),- t("ocr_recognize_files", "Recognize text in multiple files", "Scan & OCR ▸ Recognize text ▸ In multiple files: read every page of each PDF in paths and write the searchable result into folder under the same name (pages that already have text are left alone unless skip_text_pages is false, as in ocr_recognize). Returns, per file, the output path, word count and skipped pages, or the error.")+ t("ocr_recognize_files", "Recognize text in multiple files", "Scan & OCR ▸ Recognize text ▸ In multiple files: read every page of each PDF in paths and write the searchable result into folder under the same name (pages that already have text are left alone unless skip_text_pages is false, as in ocr_recognize). Two inputs that would write the same output file are refused before anything is read or written. Returns, per file, the output path, word count and skipped pages, or the error.").cmd("ocr.recognize_batch").with(schema(json!({