set_mesh_surface_material
Assign a material to any surface of a MeshInstance in a Godot scene using scene path, node name, material file, and optional surface index.
Instructions
Set surface material on MeshInstance.
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": {
"scene_path": "<scene_path>",
"node_name": "<node_name>",
"material_path": "<material_path>"
},
"name": "set_mesh_surface_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_name | Yes | MeshInstance node name | |
| scene_path | Yes | Path to .tscn scene | |
| material_path | Yes | Path to material .tres file | |
| surface_index | No | Surface index |