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 Details

  • Method Details

    • getName

      public String getName()
      Tool name to invoke.
      Returns:
      The name, or null if not set.
    • setName

      public CallToolRequest setName(String value)
      Sets the tool name.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getArguments

      Tool arguments (free-form object map).
      Returns:
      The arguments map, or null if not set.
    • setArguments

      Sets tool arguments.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • putArgument

      public CallToolRequest putArgument(String name, Object value)
      Convenience method to add a single tool argument.
      Parameters:
      name - The argument name. Can be null (LinkedHashMap tolerates a null key).
      value - The argument value. Can be null (stored as null).
      Returns:
      This object (for method chaining).
    • getInputResponses

      Server-assigned-id-keyed map of collected answers to a prior input_required pause, echoed back on a resume call.
      Returns:
      The map, or null if not set.
    • setInputResponses

      Sets the collected-answers map.
      Parameters:
      value - The new value. Can be null 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 be null (LinkedHashMap tolerates a null key).
      value - The answer value. Can be null (stored as null).
      Returns:
      This object (for method chaining).
    • getRequestState

      The opaque continuation token echoed back from a prior input_required result.
      Returns:
      The token, or null if not set.
    • setRequestState

      Sets the echoed continuation token.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).