READABLE_AS_TEXT
@forge/monorepo / backend/src / READABLE_AS_TEXT
Variable: READABLE_AS_TEXT
constREADABLE_AS_TEXT: readonlystring[]
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.