Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

input.ts

10 lines459 Bytes

1import { ChatFileAttachment, ChatImageAttachment } from "@t3tools/contracts";
2import * as Schema from "effect/Schema";
3import * as Struct from "effect/Struct";
4​
5// Screenshot provenance is app-owned. Existing attachments recover it from stored
6// metadata; exposing its recursive accessibility tree breaks model tool schemas.
7export const McpAttachmentInput = Schema.Union([
8 ChatImageAttachment.mapFields(Struct.omit(["source"])),
9 ChatFileAttachment,
10]);