x3d_check_hierarchy
Check if a child X3D node is valid within a specified parent node according to the X3D 4.0 specification. Validate node relationships to prevent structure errors.
Instructions
Check if a parent-child node relationship is valid in X3D.
Verifies whether a child node can be placed inside a parent node
based on the X3D 4.0 specification's type constraints.
Args:
parent_node: The parent node name (e.g., Transform, Scene, Appearance).
child_node: The child node name (e.g., Shape, Material, Box).
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": {
"parent_node": "<parent_node>",
"child_node": "<child_node>"
},
"name": "x3d_check_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| child_node | Yes | ||
| parent_node | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |