Interface: ToolExecutionResult

Defined in: tools/types.ts:26

Result of executing a tool

Properties

error?

optional error?: string;

Defined in: tools/types.ts:29

imageBlocks?

optional imageBlocks?: {
  data: string;
  filename?: string;
  height?: number;
  mediaType: string;
  width?: number;
}[];

Defined in: tools/types.ts:36

Optional image blocks to inject alongside the tool result. When present, these are added as sibling content blocks in the tool result message, enabling vision-capable LLMs to see images. Used by tools like view_image that return visual content.

data

data: string;

filename?

optional filename?: string;

height?

optional height?: number;

mediaType

mediaType: string;

width?

optional width?: number;

result?

optional result?: unknown;

Defined in: tools/types.ts:28

success

success: boolean;

Defined in: tools/types.ts:27