build_context
Build or rebuild a comprehensive project context index, capturing symbols, git history, and intent signals to enable accurate validation of AI-generated code against the actual codebase.
Instructions
Build or rebuild project context including symbols, git history, and intent signals. Usually auto-called by other tools.
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": {
"projectPath": "<projectPath>"
},
"name": "build_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Programming language to focus on (default: all) | all |
| maxFiles | No | Maximum files to index (default: 1000) | |
| projectPath | Yes | Root path of the project to analyze | |
| forceRebuild | No | Force rebuild even if cached | |
| includeTests | No | Include test files in context (default: true) |