Run
Run vision analysis on an image or PDF. The SDK handles upload, polling, and returns a structured envelope. The CLI is useful for one-off analysis and debugging.
SDK
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file | string | { fileName, data } | Yes | Local file path or object with fileName and data (Uint8Array/Buffer) |
prompt | string | Yes | Plain-English description of the analysis task |
outputFormat | "json" | "text" | No | Output format. Default: "json" |
schemaId | string | No | Built-in registry schema identifier |
schema | object | No | Inline custom schema with label, expectedFields, and promptScaffold |
workflow | string | No | Optional workflow label for dashboard filtering |
metadata | object | No | Arbitrary metadata attached to the job |