rebuild_feature
Rebuild a stale extrude feature by capturing its inputs, deleting it, and re-creating from the current sketch. Returns a structured error for unsupported feature types with recommendations.
Instructions
Rebuild a feature whose downstream references are stale (G10) by capturing its inputs, deleting it, and re-creating from the current sketch.
Supported feature classes: ExtrudeFeature (DistanceExtent, ProfilePlaneStart
or OffsetStart, 1 or N profiles in the same sketch). This is the most
common G10 case — a feature that got healthState=1 (warning, using cached geometry) after a sketch geometry rewrite.
Returns structured not_supported_for_rebuild error for other feature
classes (fillet, chamfer, hole, revolve, etc.) with a recommendation:
FilletFeature/ChamferFeature broken by upstream edits: SUPPRESS instead (gotcha G11; edge re-binding is design-specific geometric matching).
Others: delete + re-create via the appropriate add_* tool.
Profile matching: when the original sketch has more than one profile, picks the new profile whose area is closest to the captured original area. Falls back to profile[0] if no area was captured.
Failure mode warning: if delete succeeds but recreate fails (e.g., sketch name changed, multiple profiles spread across sketches), the response sets ok=false and includes a WARNING field instructing the agent to undo via Fusion's undo and try again manually.
Args: feature_name: Name of the feature to rebuild. Walks root + every sub-component. component_name: Optional hint for disambiguation.
Chain pattern: edit_sketch_dimension -> audit_feature_health -> for each broken extrude in features list, rebuild_feature -> audit_feature_health.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feature_name | Yes | ||
| component_name | No |