twining_prune_graph
Removes orphaned knowledge graph entities without relations. Cleans up stale or disconnected entities, optionally filtering by type.
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. |