Download a file
download_fileDownloads a model's CAD file to your computer, returning the saved path, licence, and attribution; check download availability first to confirm daily download credits.
Instructions
Download one of a model's files to this computer. The first file of a model each UTC day uses one of the user's CommunityCAD downloads; more files of that model the same day and repeats are free (call check_download first). Returns the saved path, the licence and the attribution line.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_id": "<model_id>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | No | file_id from get_model. Optional when the model has one file. | |
| model_id | Yes | ||
| directory | No | Save here instead of ~/CommunityCAD/<model-slug>/. | |
| zip_member | No | For a ZIP file: also extract this one member (path or file name). |