Open History to see the last commit
Defined in: packages/ai/src/types.ts:1499
Emitted when an MCP tool returns a ui:// resource (MCP Apps). Reconciled into a UIResourcePart on the assistant UIMessage. Never enters model input.
Extends#
Properties#
metadata?#
optional metadata?: Record<string, any>;
Defined in: packages/ai/src/types.ts:1416
Extra information attached to this event.
Inherited from#
name#
name: "ui-resource";
Defined in: packages/ai/src/types.ts:1500
What this custom event is. Required: without it a consumer cannot route the value.
Overrides#
CustomEvent.name
type#
type: "CUSTOM";
Defined in: packages/ai/src/types.ts:1415
Inherited from#
value#
value: object;
Defined in: packages/ai/src/types.ts:1501
The payload. Any JSON value, and required.
meta?#
optional meta?: Record<string, unknown>;
resource#
resource: object;
resource.blob?#
optional blob?: string;
resource.mimeType#
mimeType: string;
resource.text?#
optional text?: string;
resource.uri#
uri: string;
serverId?#
optional serverId?: string;
toolCallId#
toolCallId: string;
toolName#
toolName: string;
Overrides#
CustomEvent.value