unity_search_by_name
Search for GameObjects by name pattern. Supports substring or regex matching, with options to include inactive objects and limit results.
Instructions
Find all GameObjects whose name contains a pattern. Supports substring matching or regex.
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": {
"name": "<name>"
},
"name": "unity_search_by_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name pattern to search for | |
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| limit | No | Maximum results to return (default: 500). | |
| regex | No | Use regex matching instead of substring (default: false) | |
| includeInactive | No | Include inactive GameObjects (default: false) |