Skip to content

Control a scanner with an AI agent ​

Let an AI agent use CZUR MCP to capture paper or books with your local device and save images. This guide focuses on device selection, material-aware processing, and page-by-page confirmation. For existing images, skip scanning and use document processing and AI analysis.

Ask your agent directly ​

After configuring MCP and authorization, place a single page and send:

Please use CZUR MCP to scan one document, save it as a JPG image, and tell me its saved path.

For manual page turning:

Please scan two pages as JPG images. Wait for me to confirm that each page is ready before capturing, then list the saved paths in page order.

You can use czur-document-scan; see Install CZUR Skills. If multiple devices are available and none is specified, the agent should list choices first. Device IDs come from the actual local list, not product names.

Choose modes for the material ​

Material or intentPage modeColor mode
Ordinary single sheetsingle_pageauto_optimize
Bound book or curved pagecurved_bookauto_optimize
White paper with sealssingle_pagewhite_paper_seal
Certificate backgroundsingle_pagecertificate
Color illustrations or annotationsChoose for paper or bookscolor_enhance
Original framing and colorskeep_originalno_optimize

Choose monochrome or grayscale only when explicitly needed; do not automatically remove color from seals, signatures, or annotations. See Tools Reference for all modes.

Actual MCP call sequence ​

These JSON objects are separate tools/call inputs, not one script. First discover devices:

json
{
  "name": "device.list",
  "arguments": {}
}

Copy the selected actual device_id and start scanning. scan.start opens the device, so do not duplicate this with a preceding device.open:

json
{
  "name": "scan.start",
  "arguments": {
    "device_id": "YOUR_DEVICE_ID",
    "page_processing": "single_page",
    "color_mode": "auto_optimize",
    "format": "jpg"
  }
}

Replace the placeholder with the returned scan_id, then capture once the current page is ready:

json
{
  "name": "scan.capture",
  "arguments": {
    "scan_id": "RETURNED_SCAN_ID",
    "timeout_ms": 60000
  }
}

Read images[].local_path, file_uri, content_type, and size, retaining every returned image. One capture can produce multiple pages, not necessarily one file. For multiple pages, retain the same scan_id and call scan.capture once after each page-turn confirmation. Collect images in capture order and each returned array's order.

When finished, interrupted by the user, or ready for independent processing, finish the scan you created:

json
{
  "name": "scan.finish",
  "arguments": {
    "scan_id": "RETURNED_SCAN_ID"
  }
}

Inspect video_stopped, device_closed, and command_disconnected in cleanup results rather than assuming release because the tool returned. Files remain after the session ends. After timeout or disconnection, clarify the outcome before capturing again, and do not close another task's session.

Equivalent CLI operations ​

bash
czur-open device list --json
czur-open scan "YOUR_DEVICE_ID" --page-processing single_page --color-mode auto_optimize --format jpg --output-dir "./scans" --json

One CLI command opens the device, captures, downloads, and attempts cleanup. On success, read files[].path and inspect the exit code, status, and warnings. For manual page turning, run single-page commands separately. --count performs consecutive captures without pausing for confirmation.

Replace the example device ID with an actual value. Quote output paths containing spaces. See capture and processing for complete options.

Review results and continue ​

Open actual images and check orientation, edges, and color before proceeding. For text, call scan.finish before following scan, enhance, and OCR. To organize images as documents, see PDF / OFD export.

Scanning and local file saving do not automatically send materials to a third-party AI. Specify subsequent analysis separately and review your agent service's data handling; see privacy and security.