magento_index
Index Magento 2 codebase for semantic search after code changes. Processes PHP, XML, JS, PHTML, and GraphQL files to update search index.
Instructions
Index or re-index the Magento codebase for semantic search. Run this after code changes to update the search index. Indexes PHP, XML, JS, PHTML, and GraphQL files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "magento_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to Magento 2 root directory. Uses configured MAGENTO_ROOT if not specified. |