Skip to content

GadgetExecutionResult

Defined in: gadgets/types.ts:115

optional breaksLoop: boolean

Defined in: gadgets/types.ts:122


optional cost: number

Defined in: gadgets/types.ts:124

Cost of gadget execution in USD. Defaults to 0 if not provided by gadget.


optional error: string

Defined in: gadgets/types.ts:120


executionTimeMs: number

Defined in: gadgets/types.ts:121


gadgetName: string

Defined in: gadgets/types.ts:116


invocationId: string

Defined in: gadgets/types.ts:117


optional media: GadgetMediaOutput[]

Defined in: gadgets/types.ts:126

Media outputs from the gadget (images, audio, video, files)


optional mediaIds: string[]

Defined in: gadgets/types.ts:128

Abstract IDs for media outputs (e.g., [“media_a1b2c3”])


parameters: Record<string, unknown>

Defined in: gadgets/types.ts:118


optional result: string

Defined in: gadgets/types.ts:119


optional storedMedia: StoredMedia[]

Defined in: gadgets/types.ts:130

Stored media with paths (for CLI display)