cache_model
Copy a 3D model file into the local cache for reuse, automatically detecting duplicates via SHA-256 hash and storing metadata like source, prompt, tags, and dimensions.
Instructions
Add a 3D model file to the local cache for reuse across jobs.
Copies the file into ``~/.kiln/model_cache/`` and stores metadata
(source, prompt, tags, dimensions) in the database. Duplicate files
are detected automatically by SHA-256 hash.
Args:
file_path: Path to the model file on disk.
source: Origin — ``"thingiverse"``, ``"myminifactory"``, ``"meshy"``,
``"openscad"``, ``"upload"``, etc.
source_id: Marketplace thing ID or generation job ID.
prompt: For generated models, the text prompt used.
tags: Comma-separated tags (e.g. ``"benchy,calibration,test"``).
dimensions: JSON object with bounding box in mm, e.g.
``'{"x": 60, "y": 31, "z": 48}'``.
metadata: Optional JSON object with extra data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| prompt | No | ||
| source | Yes | ||
| metadata | No | ||
| file_path | Yes | ||
| source_id | No | ||
| dimensions | No |