docmgr_migrate
Migrate documentation to a new location or structure while preserving git history. Optionally rewrite internal links and regenerate table of contents; preview changes with dry run before execution.
Instructions
Migrate or restructure documentation while optionally preserving git history.
Use when: Moving docs to new location, changing documentation platform, or reorganizing documentation structure Result: Moves/restructures documentation files, optionally rewrites internal links, regenerates TOC, preserves git history Mode: State-modifying (moves files, modifies content)
Options:
preserve_history=true: Uses git mv to maintain file history
rewrite_links=true: Updates internal links to match new structure
regenerate_toc=true: Rebuilds table of contents
dry_run=true: Shows what would be done without making changes
Typical workflow: Set dry_run=true first to preview changes → review plan → run with dry_run=false to execute migration
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| source_path | Yes | ||
| target_path | No | docs | |
| target_platform | No | ||
| preserve_history | No | ||
| rewrite_links | No | ||
| regenerate_toc | No | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |