load_library
Loads a Python file into the Inventor execute_python namespace so helper functions and cached objects persist and reload automatically after namespace resets.
Instructions
Run a Python file into this Inventor's execute_python namespace and keep it there: after reload_api or a new namespace it is loaded again by itself. For helper functions and cached objects (Content Center families…) you would otherwise redefine every time. A file at ~/.inventor-mcp/startup.py (or INVENTOR_MCP_STARTUP) is loaded the same way for every Inventor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |