How to do spatial query on 3DTiles?

1.Metadata——A method get Cesium Metadata from 3DTiles on the atricle, We will look at how to retrieve the metadata of a primitive from such a line trace, if any metadata exists, but I want to get the Metadata of 3Dtiles by other means, and then realize the spatial query.

CesiumEncodedMetadata Component does not lead to Get Primitive Metadata, I know it is through Line trace by channel, But I want to use this component to directly obtain the metadata, and then perform a spatial query after the survival online table.