Result Object
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.filesPrimary output File objects. Always inspect this first for file-output Tools.
result.archiveOptional ZIP result created for supported multi-file output.
result.dataStructured result for data-output Tools or additional Tool data.
result.metadataExecution and output metadata declared by the Tool.
result.executionIdUnique client execution identifier useful for your own logging.
result.toolThe Tool ID that produced the result.