phpactor_index_build
Build the Phpactor project index required for code analysis. Checks PSR-4 autoload configuration and warns about missing setup.
Instructions
Build or rebuild the Phpactor project index. Must run before other phpactor tools. Checks PSR-4 autoload config and warns if missing (Yii2 projects need manual setup).
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": "phpactor_index_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset | No | Purge the index and rebuild from scratch | |
| projectPath | Yes | Absolute path to the PHP project root |