get_descendants
Retrieve all descendants of a Roblox instance with optional filters for class, name, and traversal depth to isolate specific objects in the hierarchy.
Instructions
Get all descendants of an instance with optional class/name filters and depth limit
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": {
"instancePath": "<instancePath>"
},
"name": "get_descendants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | Optional: maximum depth to traverse (default: unlimited) | |
| nameFilter | No | Optional: only include instances whose name contains this string | |
| classFilter | No | Optional: only include instances of this class (e.g. "Part", "Script") | |
| instancePath | Yes | Path to the root instance |