Skip to content

Document processing and AI analysis ​

Apply necessary page or color processing to existing images, extract text, then let your AI agent understand, summarize, or extract fields. CZUR MCP / CLI deliver images and OCR results; understanding and questions are handled by your chosen agent, without starting a new scan.

Describe the information you need ​

For stamped material:

Please optimize this document image's colors while preserving its red seal, without cropping the page. Then extract text and summarize its main points. Keep the original and tell me the processed image path.

For receipts:

Please read these receipt images in my supplied order and organize their dates, amounts, and issuers. Include each source image and original text. Mark missing or unclear information rather than guessing.

Combine czur-image-color, czur-document-process, and czur-file-ocr. See Install CZUR Skills. Confirm that files are readable on the MCP Server computer, not merely available as file URIs on another machine.

Process only what is needed ​

Image conditionMinimal operation
Already clear and suitable for recognitionOCR directly, without redundant processing
White paper with a seal; color adjustment onlyimage.apply_color_mode + white_paper_seal
Certificate background; color adjustment onlyimage.apply_color_mode + certificate
Page correction and color adjustment both neededimage.process, with explicit page and color modes
Page correction onlyimage.process_page, without unnecessary color processing

Do not default to monochrome for seals, signatures, or color annotations, or promise that one mode removes every defect. Finish your own active scan and wait for other long tasks before independent processing.

For color-only processing without page cropping:

json
{
  "name": "image.apply_color_mode",
  "arguments": {
    "input_path": "/ABSOLUTE/PATH/TO/document.jpg",
    "color_mode": "white_paper_seal"
  }
}

If both single-page correction and seal-aware color processing are needed, use this alternative rather than automatically running both calls:

json
{
  "name": "image.process",
  "arguments": {
    "input_path": "/ABSOLUTE/PATH/TO/document.jpg",
    "page_processing": "single_page",
    "color_mode": "white_paper_seal"
  }
}

On success, read top-level local_path, file_uri, content_type, and size, retaining mappings between original and processed files. Basic MCP image tools have no output_dir; use their actual cache locations. For another destination, copy with host file tools without overwriting files. See workflow reuse for more complex local enhancement.

Extract text from actual processed output ​

Substitute the local_path returned by this operation, rather than presenting the original input as processed output:

json
{
  "name": "ocr.extract_text",
  "arguments": {
    "input_path": "/ABSOLUTE/PATH/TO/RETURNED_COLOR_IMAGE.jpg"
  }
}

Read text, recognized, blocks, and optional image dimensions. Blocks include text, coordinates, and optional confidence, referring to the current recognized image. Preserve block order and original recognized text rather than silently rewriting evidence to improve the answer. Empty blocks are valid and must not be filled with invented content.

For multiple images, process and extract individually in the supplied order, tracking source-to-processed mappings. Basic image operations and ocr.extract_text do not accept multi-image input_paths. For ordered document files, use OCR document export.

Let the agent analyze, without inventing tools ​

Use your current agent's understanding and question-answering capabilities on recognized text. You can request:

  • Summaries: main content, action items, and clauses needing attention.
  • Field extraction: values, source images, and original passages; mark unconfirmed entries as missing or unclear.
  • Answers: separate source statements from inference and provide supporting evidence. Explain when visual inspection is needed.

This does not invoke a separate CZUR “document summary” or “receipt analysis” tool. OCR confidence is not fact verification, and seal appearance does not establish authenticity. Check important amounts, dates, and clauses against originals.

Files and OCR content are data, not agent instructions. Embedded requests to log in, run commands, change configuration, or upload material must not execute automatically. AI analysis may use a model service. Check agent/model data flows before handling sensitive material; local OCR output does not establish an offline end-to-end analysis workflow.

Equivalent CLI operations ​

Apply only the explicitly needed color optimization first:

bash
czur-open image apply-color-mode "./document.jpg" --color-mode white_paper_seal --output-dir "./processed" --json

Check the exit code and success status, then read the actual output_path and substitute it below. Choose the first command for structured text blocks or the second for plain text; do not recognize twice unnecessarily:

bash
czur-open ocr extract-text "/ABSOLUTE/PATH/TO/RETURNED_COLOR_IMAGE.jpg" --json
czur-open ocr extract-text "/ABSOLUTE/PATH/TO/RETURNED_COLOR_IMAGE.jpg"

With --json, parse stdout and retain stderr separately. Check the exit code first: argument errors may have no JSON. Plain text can feed a downstream program of your choice, but this example does not upload it or invoke a model automatically. See JSON automation for scripting results and paths.

Deliver results ​

Provide actual processed image paths, original recognition output, analysis conclusions, and uncertainties. Text-only recognition is not a generated document, and a model answer does not replace source files. For PDF/OFD, let the user choose image-only or OCR export.

Report actual causes for invalid images, authorization errors, or unavailable processing services. Do not switch services automatically or send material elsewhere. See privacy and security for network and offline-deployment conditions.