sync
Controls repository state by checking status, running incremental or full re-indexing, analyzing files or MySQL schemas, and exporting/importing knowledge records between databases and Markdown files.
Instructions
Controls repository synchronization. Actions: status (show current state), incremental (process changes), full (complete re-index), analyze_file (single file), analyze_schema (MySQL), knowledge_export (DB → git-friendly Markdown files), knowledge_import (Markdown files → DB).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path (for analyze_file) | |
| force | No | Force re-analysis even without changes. Default: false | |
| action | Yes | Sync operation | |
| connection | No | MySQL connection (for analyze_schema) |