Skip to main content

READABLE_AS_TEXT

@forge/monorepo


@forge/monorepo / backend/src / READABLE_AS_TEXT

Variable: READABLE_AS_TEXT

const READABLE_AS_TEXT: readonly string[]

Defined in: backend/src/files/read-tool.ts:42

Media types this tool will decode as text.

An exact list, for the same reason DEFAULT_UPLOAD_LIMITS uses one: text/* is how a text/html payload with a script becomes "just text". A PDF or an image is refused with the reason and the alternative, so the model redirects instead of retrying — a refusal that does not say what to do next produces a loop.