Ein-/Ausgabe und Ergebnisse›Result-Objekt

Result-Objekt

Headless and Interactive completion results use the same core result shape.

{
  tool: "pdf-to-jpg",
  executionId: "…",
  files: File[],
  archive?: {
    type: "zip",
    file: File,
    fileCount: number
  },
  data?: unknown,
  metadata?: {
    durationMs?: number,
    width?: number,
    height?: number,
    inputBytes?: number,
    outputBytes?: number,
    archiveBytes?: number,
    ...
  }
}
result.files

Primary output File objects. Always inspect this first for file-output Tools.

result.archive

Optional ZIP result created for supported multi-file output.

result.data

Structured result for data-output Tools or additional Tool data.

result.metadata

Execution and output metadata declared by the Tool.

result.executionId

Unique client execution identifier useful for your own logging.

result.tool

The Tool ID that produced the result.