> ## Documentation Index
> Fetch the complete documentation index at: https://docs.augent.app/llms.txt
> Use this file to discover all available pages before exploring further.

# rebuild_graph

> Rebuild Obsidian graph view data for all transcriptions

Migrate `.md` files to YAML frontmatter, compute `[[wikilinks]]` between semantically related transcriptions, and generate MOC (Map of Content) hub files for tag clusters. Safe to run repeatedly.

## Parameters

| Parameter         | Type   | Required | Description                                                       |
| ----------------- | ------ | -------- | ----------------------------------------------------------------- |
| `min_moc_members` | number | No       | Minimum transcriptions per tag to generate a MOC file. Default: 3 |

## Response

| Field                    | Description                                           |
| ------------------------ | ----------------------------------------------------- |
| `success`                | Whether the rebuild completed                         |
| `migration`              | Stats: migrated, synced, recreated, errors            |
| `related_links_computed` | Number of transcriptions with related \[\[wikilinks]] |
| `mocs_generated`         | Number of MOC hub files created/updated               |
| `memory_dir`             | Path to the transcriptions directory                  |

## Example

```
rebuild_graph
```

Returns migration stats, related link count, and MOC count. Point Obsidian at `memory_dir` to see the graph.
