files-attach_from_url
Fetch a file from a public URL or a native ChatGPT file reference and attach it to one of your personal notes (personal notes only; for team or shared notes use files-create_upload_url). Required: note_id and either url or file. In ChatGPT, prefer file for an available file reference, including generated or processed files when ChatGPT can provide one. ChatGPT supplies the temporary download URL and file ID; never invent them, pass a local file path, or encode the bytes as base64. If both sources are supplied, a non-empty file reference takes precedence; an all-blank file placeholder is ignored. Follows up to three redirects. Optional: filename (overrides reference metadata, otherwise derived from URL), content_type (overrides reference metadata, otherwise from HTTP response), description. When no reference or public URL is available, use files-create_upload_url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public URL to fetch; optional when file is supplied | |
| file | No | Native file reference supplied by ChatGPT; optional when url is supplied | |
| note_id | Yes | Personal note ID to attach the file to | |
| filename | No | Override filename; otherwise reference metadata or URL path | |
| description | No | Optional file description | |
| content_type | No | Override MIME type; otherwise reference metadata or HTTP response |