twining_prune_graph
Prune orphaned knowledge graph entities with no relations to clean up disconnected data. Optionally filter by entity type and preview changes with a dry run.
Instructions
Remove orphaned knowledge graph entities that have no relations. Use this to clean up stale or disconnected entities. Optionally filter by entity type to only prune certain kinds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, report orphans without removing them (default: false) | |
| entity_types | No | Only prune orphans of these types (e.g., ["concept", "file"]). If omitted, prunes all orphan types. |