collision_set_shape_properties
Modify collision shape properties, such as size and position, on a specified node and shape index in a Godot scene.
Instructions
Set properties of a collision shape.
Category: Collision
Args: project_path: Path to the Godot project directory scene_path: Path to the scene file (relative to project) node_path: Path to the CollisionShape node shape_index: Index of the shape (0 for first CollisionShape child) properties: JSON string of properties to set (e.g., '{"size": [20, 30], "position": [5, 0]}')
Returns: Success message or error description
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": {
"project_path": "<project_path>",
"scene_path": "<scene_path>",
"node_path": "<node_path>",
"shape_index": "<shape_index>",
"properties": "<properties>"
},
"name": "collision_set_shape_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_path | Yes | ||
| node_path | Yes | ||
| shape_index | Yes | ||
| properties | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |