Class CallToolRequest
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.RequestParams<CallToolRequest>
org.apache.juneau.bean.mcp.v20260728.CallToolRequest
Parameters for "tools/call".
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTool arguments (free-form object map).Server-assigned-id-keyed map of collected answers to a priorinput_requiredpause, echoed back on a resume call.getName()Tool name to invoke.The opaque continuation token echoed back from a priorinput_requiredresult.putArgument(String name, Object value) Convenience method to add a single tool argument.putInputResponse(String id, Object value) Convenience method to add a single collected answer.setArguments(Map<String, Object> value) Sets tool arguments.setInputResponses(Map<String, Object> value) Sets the collected-answers map.Sets the tool name.setRequestState(String value) Sets the echoed continuation token.Methods inherited from class org.apache.juneau.bean.mcp.v20260728.RequestParams
getMeta, setMeta
-
Constructor Details
-
CallToolRequest
public CallToolRequest()
-
-
Method Details
-
getName
Tool name to invoke.- Returns:
- The name, or
nullif not set.
-
setName
Sets the tool name.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getArguments
Tool arguments (free-form object map).- Returns:
- The arguments map, or
nullif not set.
-
setArguments
Sets tool arguments.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
putArgument
Convenience method to add a single tool argument.- Parameters:
name- The argument name. Can benull (LinkedHashMaptolerates anull key).value- The argument value. Can benull (stored asnull ).- Returns:
- This object (for method chaining).
-
getInputResponses
Server-assigned-id-keyed map of collected answers to a priorinput_requiredpause, echoed back on a resume call.- Returns:
- The map, or
nullif not set.
-
setInputResponses
Sets the collected-answers map.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
putInputResponse
Convenience method to add a single collected answer.- Parameters:
id- The server-assigned id. Can benull (LinkedHashMaptolerates anull key).value- The answer value. Can benull (stored asnull ).- Returns:
- This object (for method chaining).
-
getRequestState
The opaque continuation token echoed back from a priorinput_requiredresult.- Returns:
- The token, or
nullif not set.
-
setRequestState
Sets the echoed continuation token.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-