Rebuild SolidWorks API Index
discover_solidworks_docsRebuild the SolidWorks API index from the installed type library for a specific year, or save a copy of the index to another folder.
Instructions
Rebuild the SolidWorks API index on purpose. The lookups don't need it.
The lookup tools (lookup_api_method, lookup_api_interface, find_related_api_members, search_solidworks_api_help) build the index themselves on first use, so call this only to rebuild it, to read a specific SolidWorks year, or to save a copy elsewhere. It reads every interface in the installed SolidWorks type library (each member's parameters, return type and description), plus the VBA library references. SolidWorks must be installed, not running; it is never started or called. Changes: writes the index file, replacing the saved one.
Returns summary (interface, method and property counts),
type_library (version, year and .tlb path), year and
output_file, the saved index (megabytes, so it is not returned).
Fails with a message naming the installed years when year isn't
installed, or saying SolidWorks isn't installed here.
Example input: {"year": 2026}
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": "discover_solidworks_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | No | The rebuild. Nothing is required: `year` defaults to the installed release, `output_dir` to the index folder, and `include_vba` to on. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||