generate_asset
Generate game-ready Roblox assets from a text prompt or image: Meshy creates the textured mesh, Blender auto-fixes Roblox limits, then the GLB uploads and inserts into your place.
Instructions
FULL PIPELINE: turn a text prompt (or an image) into a game-ready asset in the open place — Meshy AI generates the textured mesh, headless Blender lints it against Roblox limits and auto-fixes (decimates >20k tris, downscales >1024px textures; autoFix:false to skip), then the GLB uploads to the user's Roblox account via Open Cloud and inserts as a Model. SPENDS MESHY CREDITS (~30 ≈ $0.60 per asset) — first call returns a cost estimate and asks for confirm:true unless TUFAN_MESHY_AUTOCONFIRM=1. Generation takes minutes; on budget exhaustion you get a meshyTaskId to resume with (no re-spend). Position the inserted model afterwards with place_on. Needs TUFAN_MESHY_KEY + TUFAN_OPENCLOUD_KEY (Blender optional but recommended). For an EXISTING marketplace asset by id use insert_asset instead; for a local file you already have use import_file instead; to generate WITHOUT auto-inserting into the place (just the raw model), use meshy_generate instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name on Roblox (default: derived from the prompt) | |
| place | No | Target place (PlaceId or project name). Defaults to the bound/sole connected place. | |
| anchor | No | Anchor all parts after insert so the prop can't fall (default true) | |
| insert | No | Insert into the place after upload (default true) | |
| prompt | No | Text description of the asset (mutually exclusive with image*) | |
| autoFix | No | Auto-decimate/downscale when the lint flags Roblox-limit violations (default true) | |
| confirm | No | Confirm the credit spend for a NEW generation | |
| imageUrl | No | Public image URL for image-to-3D | |
| onGround | No | After insert+scale, drop the model flush onto whatever is below it | |
| position | No | [x,y,z] world position for the inserted model's pivot (instead of onGround) | |
| enablePbr | No | Generate PBR maps (default true) | |
| imagePath | No | Local image file (.png/.jpg/.webp) for image-to-3D | |
| parentPath | No | Where to insert in the place (default Workspace) | |
| meshyTaskId | No | Resume from an existing Meshy task (skips generation + credits) | |
| waitSeconds | No | Max seconds for the generation stage (default 240, max 600) | |
| previewFirst | No | Text-to-3D only: stop after the geometry preview (20cr) and return a rendered thumbnail to approve BEFORE spending the texture refine (+10cr) and uploading. Approve by re-calling with { meshyTaskId } (without previewFirst). | |
| targetPolycount | No | Triangle budget requested from Meshy AND used by the decimate auto-fix (default 18000) | |
| collisionFidelity | No | Set on every MeshPart after insert — Hull is a good cheap choice for static props | |
| targetHeightStuds | No | Scale the inserted model so its height equals this many studs (a character is ~5) |