sync_index
Re-index only files changed since the last sync with git awareness, falling back to a full index when needed.
Instructions
Smart sync: only re-index files that changed since last sync (git-aware).
Falls back to full index if git is not available or no previous sync.
Uses per-codebase index at directory/.gogo/index.db.
Respects .gogoignore file if present, plus built-in defaults.
Args:
directory: Path to directory to sync (index stored at directory/.gogo/index.db)
extensions: Comma-separated file extensions to index (default: auto-detect all supported)
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": {
"directory": "<directory>"
},
"name": "sync_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | ||
| extensions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |