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
| Tool | Parameters | Behavior and results |
|---|---|---|
runtime.install | confirm?: boolean, version?: string | Omitted/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_updates | refresh?: boolean | Explicit 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.connect | None; pass {} | Establishes an authorized connection. Usually unnecessary as a separate prerequisite because business tools connect on demand. Returns status and errors, not credentials. |
Devices
| Tool | Parameters | Behavior and results |
|---|---|---|
device.list | None; pass {} | Returns devices and count when supplied; an empty list is valid. |
device.get | device_id: string | Reads device metadata and resolutions without opening the device. |
device.open | device_id: string; optional width, height, fps, pixel_format | Opens and holds a device. Returns opened and output sizing capabilities in capture_output. For scanning, usually call scan.start directly. |
device.close | device_id: string | Releases 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
| Tool | Parameters | Behavior and results |
|---|---|---|
scan.start | Required device_id; optional fields below | Opens the device and video stream. Returns scan_id, device_id, status=ready, and profile. Does not capture an image. |
scan.capture | scan_id: string, timeout_ms?: integer | Captures 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.finish | scan_id: string | Stops video and closes the device and connection. Inspect cleanup status; saved files are retained. |
scan.start options
| Field | Values and meaning |
|---|---|
page_processing | single_page (default), curved_book, keep_original |
color_mode | auto_optimize (default); full modes below |
format | jpg (default), png, tif, tiff |
quality | Integer from 1 to 100 |
target_size | Positive integer; choose from the device's capture_output.target_sizes rather than guessing |
pipeline / workflow_id | Optional 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
| Tool | Parameters | Behavior and results |
|---|---|---|
image.process | Required input_path; optional processing fields below | Processes paper and color for an existing image and delivers the image in the same call. |
image.process_page | Same as above | Performs paper processing. |
image.apply_color_mode | Same as above | Performs 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
| Tool | Parameters | Behavior and results |
|---|---|---|
image.enhance_capabilities | None; pass {} | Discovers local enhancements, descriptions, available, unavailability reasons, parameter defaults, and schemas. |
image.enhance_workflow_list | None; pass {} | Lists available workflows stored by Runtime. |
image.enhance_workflow_get | workflow_id: string | Reads one workflow configuration. |
image.enhance_workflow_save | workflow?: 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_delete | workflow_id: string | Write 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
| Tool | Parameters | Behavior and results |
|---|---|---|
image.enhance | input_path? / input_paths?; pipeline or workflow_id | Uploads local images and submits enhancement, returning a handle without waiting for all processing and downloads. |
image.enhance_get | handle: string | Queries once; successful terminal results download and deliver assets[]. Terminal handling releases the handle. |
image.enhance_cancel | handle: string | Requests 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
| Tool | Parameters | Behavior and results |
|---|---|---|
ocr.extract_text | input_path: string | Extracts text from one image and returns text and blocks in the same call, without a long-task handle. |
ocr.recognize | input_path? / input_paths?; format?, export_type?, params? | Submits document export in input order and returns a handle. Defaults to docx and multi-page. |
ocr.get | handle: string | Queries once; downloads documents on completion and returns assets[]. Terminal handling releases the handle. |
ocr.cancel | handle: string | Requests 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:
{
"name": "device.list",
"arguments": {}
}{
"name": "image.enhance_capabilities",
"arguments": {}
}After finishing any scan session, extract text from an actual local image:
{
"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.