Navigation
API > API/Plugins > API/Plugins/ModelContextProtocol > API/Plugins/ModelContextProtocol/IModelContextProtocolModule
Description
Add tool to server, ensuring no tool is already registered by the same name (case-insensitive). Note: Tool providers should listen for OnRefreshTools to re-add tools.
| Name | AddTool |
| Type | function |
| Header File | /Engine/Plugins/Experimental/ModelContextProtocol/Source/ModelContextProtocol/Public/IModelContextProtocolModule.h |
| Include Path | #include "IModelContextProtocolModule.h" |
bool AddTool
(
const TSharedRef < IModelContextProtocolTool > & Tool
)
true if the tool was successfully registered, false if there is already a tool by this name being served.
See Also
- IModelContextProtocolTool::GetName