Skip to main content

MAX_ATTACHMENT_PART_BYTES

@forge/monorepo


@forge/monorepo / backend/src / MAX_ATTACHMENT_PART_BYTES

Variable: MAX_ATTACHMENT_PART_BYTES

const MAX_ATTACHMENT_PART_BYTES: number

Defined in: backend/src/files/turn-parts.ts:56

The per-attachment ceiling.

Smaller than read_attachment's 32KB window is larger, not smaller, and the difference is the point: text can be paged, so its tool reads a window. An image cannot be paged, so the whole thing travels or none of it does — and the ceiling is what stops "the whole thing" from being 20MB.