Class CallToolRequest

java.lang.Object
org.apache.juneau.bean.mcp.v20250618.CallToolRequest

@Marshalled public class CallToolRequest extends Object
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).