Class ReloadTool
java.lang.Object
org.tentackle.maven.plugin.mcp.tool.ReloadTool
- All Implemented Interfaces:
ModelTool
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ModelSession session, ToolArguments args) Executes the tool.Gets the description telling an agent when to use this tool.Gets the JSON schema of the arguments.getName()Gets the tool name as seen by the client.getTitle()Gets the human-readable title.booleanReturns whether this tool only reads the model.
-
Field Details
-
NAME
-
-
Constructor Details
-
ReloadTool
public ReloadTool()Creates the tool.
-
-
Method Details
-
getName
-
getTitle
-
getDescription
Description copied from interface:ModelToolGets the description telling an agent when to use this tool.- Specified by:
getDescriptionin interfaceModelTool- Returns:
- the description
-
getInputSchema
Description copied from interface:ModelToolGets the JSON schema of the arguments.- Specified by:
getInputSchemain interfaceModelTool- Returns:
- the schema
-
execute
Description copied from interface:ModelToolExecutes the tool.Invoked with the model lock held, see
ModelSession.call(ModelSession.ModelOperation).- Specified by:
executein interfaceModelTool- Parameters:
session- the model sessionargs- the arguments, never null- Returns:
- the text handed to the model
- Throws:
ModelException- if the model is inconsistent
-
isReadOnly
public boolean isReadOnly()Description copied from interface:ModelToolReturns whether this tool only reads the model.- Specified by:
isReadOnlyin interfaceModelTool- Returns:
- true if read-only
-