Skip to content

Tools Reference ​

This page lists CZUR MCP Server tools, parameters, and how to use their results. JSON examples are input objects for MCP tools/call, invoked by an AI agent or MCP client, not terminal commands.

Every file path refers to the computer running MCP Server. Tool arguments do not accept API Keys or account tokens; configure authorization through the launch environment or CLI account login. A trailing ? marks optional parameters. Discover algorithm defaults through the capability interface instead of guessing them.

Choose tools by task ​

  • Scan paper: device.list → scan.start → scan.capture → scan.finish.
  • Paper / color processing for existing images: image.process, image.process_page, image.apply_color_mode.
  • Local enhancement and reusable configuration: discover capabilities → select workflow or pipeline → image.enhance → image.enhance_get.
  • Extract text: ocr.extract_text; export documents: ocr.recognize → ocr.get.

One instance keeps one active scan session or long task at a time. Finish scanning before standalone OCR / enhancement. Manage running long tasks using the matching get / cancel tools.

Runtime management ​

ToolParametersBehavior and results
runtime.installconfirm?: boolean, version?: stringOmitted/false confirm returns a confirmation plan only; true downloads and verifies an installer over the network. Returns status, installerPath on download success, and nextSteps. Run the installer manually.
runtime.check_updatesrefresh?: booleanExplicit update check; refresh=true bypasses the metadata cache. No account authorization, installation, or installer download. Returns version status, source, and guidance; unknown does not mean outdated.
runtime.connectNone; pass {}Establishes an authorized connection. Usually unnecessary as a separate prerequisite because business tools connect on demand. Returns status and errors, not credentials.

Devices ​

ToolParametersBehavior and results
device.listNone; pass {}Returns devices and count when supplied; an empty list is valid.
device.getdevice_id: stringReads device metadata and resolutions without opening the device.
device.opendevice_id: string; optional width, height, fps, pixel_formatOpens and holds a device. Returns opened and output sizing capabilities in capture_output. For scanning, usually call scan.start directly.
device.closedevice_id: stringReleases the device; returns cleanup fields such as closed while keeping the ordinary business connection.

Device metadata may include device_id, model, display_name, status, authorized, and resolutions. Use returned IDs and resolutions. Optional width / height are positive integers, fps is positive, and pixel_format is mjpeg, jpeg, or bgr24.

Scanning ​

ToolParametersBehavior and results
scan.startRequired device_id; optional fields belowOpens the device and video stream. Returns scan_id, device_id, status=ready, and profile. Does not capture an image.
scan.capturescan_id: string, timeout_ms?: integerCaptures and waits for completion. Returns final images[], warnings, and next-action guidance. timeout_ms is a positive integer in milliseconds. Ask before each further capture.
scan.finishscan_id: stringStops video and closes the device and connection. Inspect cleanup status; saved files are retained.

scan.start options ​

FieldValues and meaning
page_processingsingle_page (default), curved_book, keep_original
color_modeauto_optimize (default); full modes below
formatjpg (default), png, tif, tiff
qualityInteger from 1 to 100
target_sizePositive integer; choose from the device's capture_output.target_sizes rather than guessing
pipeline / workflow_idOptional and mutually exclusive; fixes enhancement settings at startup, applied after paper and color processing

Scan enhancement permits only image, single-page output: target.type must be absent or images, and target.export_type absent or single-page. Do not put document targets, format/quality conversion fields, TIFF settings, or Runtime output paths in the capture pipeline target. Set the capture image format through scan.start.format.

Basic image processing ​

ToolParametersBehavior and results
image.processRequired input_path; optional processing fields belowProcesses paper and color for an existing image and delivers the image in the same call.
image.process_pageSame as abovePerforms paper processing.
image.apply_color_modeSame as abovePerforms color processing.

Optional fields: page_processing (single_page, curved_book, keep_original), color_mode, quality (integer 1–100), target_size (positive integer). Select fields relevant to the operation; omitted defaults are Runtime-owned.

Color modes: auto_optimize, color_enhance, black_white, grayscale, white_paper_seal, certificate, ancient, no_optimize.

Returns image content and top-level local_path, file_uri, content_type, size, and status. Use the returned MIME type rather than assuming the filename extension represents a conversion.

Enhancement capabilities and workflows ​

ToolParametersBehavior and results
image.enhance_capabilitiesNone; pass {}Discovers local enhancements, descriptions, available, unavailability reasons, parameter defaults, and schemas.
image.enhance_workflow_listNone; pass {}Lists available workflows stored by Runtime.
image.enhance_workflow_getworkflow_id: stringReads one workflow configuration.
image.enhance_workflow_saveworkflow?: object, or top-level pipeline, workflow_id?, name?, description?Write operation. Saves or updates configuration without executing enhancement. The effective workflow must contain a valid pipeline; choose one input form.
image.enhance_workflow_deleteworkflow_id: stringWrite operation that deletes configuration. Confirm the ID first; delivered images are not deleted.

Local enhancement types include crop_enhance, normalize_spec, rotate, blank_page_detect, and red_green_head. Query capabilities for availability, parameter defaults, and schemas before building a pipeline. Workflows are stored by Runtime, not in personal account cloud storage. Saving configuration does not process images.

Standalone enhancement ​

ToolParametersBehavior and results
image.enhanceinput_path? / input_paths?; pipeline or workflow_idUploads local images and submits enhancement, returning a handle without waiting for all processing and downloads.
image.enhance_gethandle: stringQueries once; successful terminal results download and deliver assets[]. Terminal handling releases the handle.
image.enhance_cancelhandle: stringRequests cancellation. Distinguish cancel_requested from cancel_confirmed; keep querying get when only the request is acknowledged.

Provide at least one local image: input_path is a string; input_paths is an ordered array of 1–1000 paths. If both are used, the single path precedes the array. Supply exactly one of pipeline and workflow_id. Standalone output targets can include images, PDF, OFD, or TIFF according to the selected target settings. Enhanced documents do not imply an OCR text layer.

OCR ​

ToolParametersBehavior and results
ocr.extract_textinput_path: stringExtracts text from one image and returns text and blocks in the same call, without a long-task handle.
ocr.recognizeinput_path? / input_paths?; format?, export_type?, params?Submits document export in input order and returns a handle. Defaults to docx and multi-page.
ocr.gethandle: stringQueries once; downloads documents on completion and returns assets[]. Terminal handling releases the handle.
ocr.cancelhandle: stringRequests cancellation; continue querying until stopping is confirmed or a terminal status is reached.

Input path fields follow enhancement ordering rules. format accepts txt, pdf, docx, xlsx, ofd, json. export_type accepts multi-page or single-page; underscore variants are also accepted. Use the documented OCR params object for extra settings. Unsupported formats fail without automatic fallback.

Text extraction returns text, recognized, blocks, and image width / height when supplied. Blocks contain text, x, y, width, height, and optional confidence / font_size. Coordinates refer to the input image; full text follows returned block order. Empty blocks are a valid recognition result.

Pipeline configuration ​

A pipeline is a structured object, not a JSON filename. version, if supplied, is image.enhance.pipeline.v1. steps is an array executed in order. Each step has a required capability type and optional id, provider, enabled, on_error (fail or skip), and params. Preserve order and explicit error handling. With on_error: "skip", inspect warnings instead of claiming every step ran.

Optional target and options follow the Runtime enhancement contract; choose algorithm parameters from discovered schemas. Runtime output path fields target.path, target.output_path, target.dir, and target.output_dir are not accepted. The local delivery directory is configured separately. A saved workflow is resolved to a pipeline snapshot before execution.

For algorithm parameter definitions, see the Runtime image API reference; OCR export parameters are described in the Runtime OCR reference. These references explain processing parameters, while MCP inputs and local file handling follow this page.

Call examples ​

Discover devices and enhancement settings first:

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

After finishing any scan session, extract text from an actual local image:

json
{
  "name": "ocr.extract_text",
  "arguments": {
    "input_path": "/ABSOLUTE/PATH/TO/page-1.png"
  }
}

Results and errors ​

Read structuredContent when available; JSON text content also carries status and file metadata. Images additionally use MCP image blocks. Document assets return local file information, not image content. Ordinary failures commonly include isError, status: "failed", and error.code / message / nextSteps; long-task unknown outcomes and delivery errors have their own fields. Check reported status even if a tool call itself completed.

For handle release, cancellation confirmation, and file delivery failure, see Long-running tasks and result files. For authorization and device lifecycle, see Connections, permissions, and sessions.