Skip to main content

MAX_BLOCKS_PER_READ

@forge/monorepo


@forge/monorepo / backend/src / MAX_BLOCKS_PER_READ

Variable: MAX_BLOCKS_PER_READ

const MAX_BLOCKS_PER_READ: 50 = 50

Defined in: backend/src/documents/read-tool.ts:31

Blocks per call, and the character ceiling that overrides it.

Both, because either alone is escapable: fifty paragraphs is a reasonable window and fifty tables is not, so the block count bounds the common case and the character count bounds the adversarial one.