Export a MeshLibrary
export_mesh_libraryConverts MeshInstance3D nodes from a 3D scene into a MeshLibrary resource for GridMap, letting you reuse scene meshes as grid tiles.
Instructions
Export the meshes in a 3D scene as a MeshLibrary resource for GridMap.
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": {
"scenePath": "<scenePath>",
"outputPath": "<outputPath>"
},
"name": "export_mesh_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenePath | Yes | The 3D scene (.tscn) containing MeshInstance3D nodes. | |
| outputPath | Yes | Where to save the library, e.g. "res://tiles.res". | |
| projectPath | No | Folder containing project.godot. Optional: defaults to the project Claude Code is running in. | |
| meshItemNames | No | Only include these mesh names (default: all). |