cache_model
Add a 3D model file to the local cache for reuse across jobs, storing metadata and detecting duplicates by SHA-256 hash.
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.
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": {
"file_path": "<file_path>",
"source": "<source>"
},
"name": "cache_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Comma-separated tags (e.g. ``"benchy,calibration,test"``). | |
| prompt | No | For generated models, the text prompt used. | |
| source | Yes | Origin — ``"thingiverse"``, ``"myminifactory"``, ``"meshy"``, ``"openscad"``, ``"upload"``, etc. | |
| metadata | No | Optional JSON object with extra data. | |
| file_path | Yes | Path to the model file on disk. | |
| source_id | No | Marketplace thing ID or generation job ID. | |
| dimensions | No | JSON object with bounding box in mm, e.g. ``'{"x": 60, "y": 31, "z": 48}'``. |