unity_search_by_layer
Locates every GameObject assigned to a specific layer in the Unity Editor scene by providing the layer name or index.
Instructions
Find all GameObjects on a specific layer.
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": {
"layer": "<layer>"
},
"name": "unity_search_by_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| layer | Yes | Layer name or index (e.g. 'UI', 'Water', '5') | |
| limit | No | Maximum results to return (default: 500). |