cavi-ai
GitHub ↗

Results and errors

Tools return structured content that matches the tool's output schema. A failed call is a tool error. The error shape is described in the MCP Core contract. This page lists what these servers return.

Photoshop and Illustrator results#

ToolResult
photoshop_status, illustrator_statusapp, application, version, running, launches_application false, authenticates false
photoshop_inspect, photoshop_fonts, illustrator_inspect, illustrator_fontsruntime, pending_operation, plus version and documents, or fonts; with a session_id, the owned copy's snapshot and session. photoshop_fonts also returns font_list and a source and file for each font (Photoshop fonts)
photoshop_text_fontsruntime, pending_operation, layers and missing_fonts
every tool that changes a documentthe mutation result below
photoshop_operation_control, illustrator_operation_controlstate, operation_id, session_id, retry_safe, completion_available, can_reconcile, copy_sha256, native_sha256, document

media_review_movie is served by the Animate server and returns path, sha256, codec, stream, execution, visual_acceptance and launches_applications.

The mutation result:

FieldMeaning
session_idThe owned copy
operation_idThis operation
documentThe snapshot after the change. See Photoshop tools and Illustrator tools.
document.changed_layerspath, name and native_id of every layer the operation created or changed. Present for the edit, add, place, mask and generative tools. An unfilled Photoshop path from photoshop_add_path adds no layer, so the list is empty.
copypath, sha256 and bytes of the saved copy
source_sha256The hash of the source file or canvas recipe
retry_safefalse

Additions: photoshop_create_canvas returns source_kind, source_sha256_kind and canvas_recipe; photoshop_place_image and illustrator_place_image return placement_source; photoshop_export and illustrator_export return artifact, native_export_sha256, visual_acceptance and receipt. The close tools return document as {"closed": true, "path": ...}.

The three Photoshop generative tools return the plain mutation result. photoshop_generative_fill lists the generated layer, photoshop_remove_background the masked layer and photoshop_generative_upscale the layer named Generative Upscale.

Animate and Dimension results#

See Animate tools, Timelines and frames and Renders. Animate results use session for the session id. Both servers return retry_safe false and launches_application false for the read tools.

Outcomes#

A failure has one of two outcomes.

  • Rejected. The request was refused before a native command was dispatched. Nothing changed. Fix the request and

send it again. Examples: an invalid argument, a path outside the workspace, an existing output, a changed layer name, Remove Background on a masked layer, Upscale over 1440 px, or a native preflight check that failed.

  • Unknown. A native command may have run. The record stays and later changes are refused until it is resolved. See

Recovery and unknown outcomes. Examples: a timeout, a Generative Credits notice that was not acknowledged, an application that changed during the command, or a receipt that did not match.

Every result that reports an operation has retry_safe false.

Error codes#

Photoshop and Illustrator errors carry the message of the failed check. The Animate and Dimension servers and the native helpers also use these codes:

CodeWhen
APP_IDENTITY_MISMATCHThe application at the path is not the expected one, or its process changed.
APP_NOT_RUNNINGAnimate, or Dimension for a render, is not running.
APP_AMBIGUOUS, APPLICATION_AMBIGUOUSMore than one process of the application.
PLATFORM_UNSUPPORTEDThe host is not macOS.
NATIVE_HELPER_UNAVAILABLE, NATIVE_HELPER_BUILD_FAILED, NATIVE_HELPER_UNSAFEThe Swift helper is missing its compiler, failed to build, or its cache failed its check.
STATE_UNSAFEA state directory is a symbolic link.
PROMPT_BLOCKED, AUTHENTICATION_BOUNDARYA sign-in, licence or permission prompt is visible. No input was sent to it.
ACCESSIBILITY_UNAVAILABLE, PERMISSION_UNAVAILABLEExisting access is missing. No request was made.
CANCELLEDThe request was cancelled before native dispatch.
DOCUMENT_IDENTITY_MISMATCHThe exact owned FLA is not open once in Animate.
VOLUME_IDENTITY_UNAVAILABLEThe macOS root volume name could not be read.
JOB_BUSY, JOB_ACTIVEA Dimension render is running or unresolved.
INVALID_ARGUMENT, INVALID_PATHA request or path the helper refused.
OUTCOME_UNKNOWNA dispatched command did not report a result.

The Dimension helper has further codes of its own, such as WINDOW_UNAVAILABLE, FOCUS_CHANGED, CHOOSER_UNAVAILABLE, DIRECTORY_NOT_OBSERVED, STALE_PROCESS, CAPTURE_FAILED and DESTINATION_EXISTS.