gltfjsx
Convert GLTF/GLB 3D models into reusable React Three Fiber JSX components for integrating 3D assets into React applications with performance optimization options.
Instructions
Converts a GLTF/GLB 3D model file into a reusable, declarative React (react-three-fiber) JSX component. Supports options for TypeScript output, mesh/material instancing, pruning, compression, texture format, mesh simplification, and more. Useful for integrating 3D assets into React apps with optimal performance and flexibility.
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": {
"modelPath": "<modelPath>",
"options": "<options>"
},
"name": "gltfjsx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modelPath | Yes | The path to the GLTF/GLB model file to convert to JSX. The path should be absolute. The path should be absolute on the file system. Do not use relative paths. | |
| options | Yes |