Import Attachment File
import_fileImport ChatGPT Apps SDK attachments into the workspace from their download URL and file ID. Set a destination path, optionally overwrite existing files, and verify content with SHA-256.
Instructions
Import a ChatGPT Apps SDK attachment into the workspace. Accepts only a platform file object with download_url and file_id. Not a general URL downloader. Overwrite is off by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ChatGPT Apps SDK file reference from openai/fileParams. | |
| overwrite | No | Replace an existing destination file. Default: false. | |
| destination | Yes | Destination path relative to the workspace root. | |
| workspace_id | No | Workspace id from open_workspace. Omit to use the workspace selected for this MCP session. | |
| expected_sha256 | No | Optional SHA-256 of the attachment bytes. Import fails on mismatch. |