Upload and download files through ChatGPT's optional window.openai
extension.
File handling is not part of the MCP Apps bridge. Always check
isSupported before calling either action; unsupported calls reject with a
descriptive error. The hook does not read or update ChatGPT widget state and
does not make uploaded files model-visible as a side effect.
The returned actions are referentially stable for the lifetime of the
mounted runtime.
Upload and download files through ChatGPT's optional
window.openaiextension.File handling is not part of the MCP Apps bridge. Always check
isSupportedbefore calling either action; unsupported calls reject with a descriptive error. The hook does not read or update ChatGPT widget state and does not make uploaded files model-visible as a side effect.The returned actions are referentially stable for the lifetime of the mounted runtime.