feature_tree_dump
Dump an existing Creo feature's element tree as JSON in the form accepted by feature creation, enabling inspection and reuse as a template for new features.
Instructions
Element tree of an existing feature: shows exactly which elements/values/references Creo uses, in the same JSON form feature_tree_create accepts. The best template for new features. for_create=true drops empty elements so the tree can be edited and passed to feature_tree_create (sketch contents are not included: re-add "sketch" on PRO_E_SKETCHER).
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": {
"feature": "<feature>"
},
"name": "feature_tree_dump"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| format | No | json | |
| feature | Yes | ||
| for_create | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||