get_foliage_in_radius
List actual foliage instances of one FoliageType inside a world-space sphere before building or removing foliage, returning location, rotation, scale, and instance_index.
Instructions
List the actual foliage instances of one FoliageType inside a world-space sphere, with each one's location, rotation, scale and instance_index. Use it to check what is standing on a spot before building there, or as a dry run before remove_foliage_in_radius. Capped by max_results (default 100, hard cap 1000), so a full count must come from get_foliage_instance_count, not from len(instances).
Returns: { count, instances: [{location, rotation, scale, instance_index}] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| radius | Yes | Radius in world units | |
| center_x | No | X component of the world-space center of the query sphere | |
| center_y | No | Y component of the world-space center of the query sphere | |
| center_z | No | Z component of the world-space center of the query sphere | |
| max_results | No | Maximum entries returned (default 100, hard cap 1000) | |
| foliage_type_path | Yes | Asset path of the UFoliageType to query |