set_physics_layers
Configure collision layers and masks for Godot nodes. Accepts bitmask integers or lists of layer numbers.
Instructions
Set collision_layer and/or collision_mask on a collision object, area or raycast, as a bitmask int or a list of layer numbers 1-32
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": {
"node_path": "<node_path>"
},
"name": "set_physics_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_path | Yes | ||
| collision_mask | No | ||
| collision_layer | No |