Skip to content

MAX_TEXT_EMITTED_TOOL_CALL_PAYLOAD_BYTES

const MAX_TEXT_EMITTED_TOOL_CALL_PAYLOAD_BYTES: 256000 = 256_000

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolCallRepair/payload.ts:62

The single source of truth for the plain-text tool-call payload cap (256 KB). A serialized call larger than this is never treated as a tool call. Re-exported from ./promote.js (and the module index) as MAX_TEXT_EMITTED_TOOL_CALL_PAYLOAD_BYTES — the public name — so there is ONE constant, not two duplicated literals. (EXT-43 unified the former DEFAULT_MAX_PLAIN_TEXT_TOOL_PAYLOAD_BYTES here with promote.ts’s copy.)