convert_3d
Transform 3D model files between OBJ, STL, PLY, GLB, GLTF, OFF, and 3MF formats, with optional scaling and unit conversion. Outputs OBJ, STL, PLY, GLB, GLTF, or JSON for further processing.
Instructions
Convert 3D model files. Input: obj, stl, ply, glb, gltf, off, 3mf. Output: obj, stl, ply, glb, gltf, json. Built-in obj/stl/ply→json; other formats require blender or assimp CLI.
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "convert_3d"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale factor (optional) | |
| units | No | Target units: mm, cm, m, in (optional) | |
| inputPath | Yes | Absolute path to input 3D model file | |
| outputPath | Yes | Absolute path for output file (include extension) | |
| inputFormat | No | Input format (auto-detected if not provided) | |
| outputFormat | No | Output format (auto-detected if not provided) |