Search instances
search_instancesLocate Roblox Studio instances by name substring and class name within a subtree, traversing descendants to find scripts, parts, or GUIs when the full path is unknown.
Instructions
Find instances by name substring and/or class name under a subtree, traversing descendants. This is the fastest way to locate a script, part or GUI by name when you do not know its full path.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_instances"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max matches. Default 50. | |
| query | No | Case-insensitive substring of Instance.Name. Omit to match all names. | |
| under | No | Instance path. Accepts "Workspace.Model.Part", "game.Workspace.Model.Part" or "game.Workspace[\"My Part\"].Model". Use "game" or omit for the DataModel root. Default "game". | |
| className | No | Exact ClassName filter, or a trailing-* wildcard such as "Script" / "*Script". |