reindex
Re-index the Dart workspace to register newly created, deleted, or renamed files, ensuring the LSP server reflects current project state.
Instructions
Re-scan the workspace and index new or removed Dart files.
Call this after creating, deleting, or renaming Dart files so the LSP server becomes aware of the changes.
Args: project_path: Absolute path to the Dart project root.
Returns: Summary of files added, removed, and total.
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": {
"project_path": "<project_path>"
},
"name": "reindex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |