set_collision_shape
Assign a collision shape to an existing CollisionShape node in a Godot scene by specifying scene path, node path, and shape type. Optionally provide a .tres resource file for the shape.
Instructions
Set collision shape for CollisionShape node.
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_path": "<node_path>",
"shape_type": "<shape_type>"
},
"name": "set_collision_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_path | Yes | Parent node path (e.g. "Player" — the CollisionShape3D must already exist as child) | |
| scene_path | Yes | Path to .tscn file | |
| shape_type | Yes | Collision shape type | |
| shape_resource_path | No | Path to .tres resource file for the shape (e.g. "res://shapes/player_capsule.tres"). Creates one if omitted. |