upload_file
Upload image files to The Game Crafter folders for game component artwork. Supports local files or URLs to add graphics to tabletop game manufacturing projects.
Instructions
Upload an image file to a TGC folder for use in a game component. This is a heavyweight operation — avoid calling repeatedly in quick succession. Requires authentication.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | Yes | The folder ID to upload the file into. Components have associated folder IDs. | |
| file_path | No | Absolute path to the image file on disk. Provide either file_path or url, not both. | |
| url | No | Public URL of the image to download and upload to TGC. Provide either url or file_path, not both. | |
| filename | No | Optional filename to use in TGC (max 255 chars). Required when uploading from URL. Defaults to the original filename when uploading from disk. |