Class ListToolsResult


Result payload for "tools/list".
  • Constructor Details

  • Method Details

    • getTools

      public List<Tool> getTools()
      Tool descriptors.
      Returns:
      The tools list, or null if not set.
    • setTools

      public ListToolsResult setTools(List<Tool> value)
      Sets the tool descriptors.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • setTools

      public ListToolsResult setTools(Tool... value)
      Sets the tool descriptors.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • addTools

      public ListToolsResult addTools(Tool... value)
      Appends to the tool descriptors.
      Parameters:
      value - The values to append.
      Returns:
      This object (for method chaining).
    • addTools

      Appends to the tool descriptors.
      Parameters:
      value - The values to append.
      Returns:
      This object (for method chaining).
    • getNextCursor

      Pagination cursor for the next page.
      Returns:
      The cursor, or null if not set.
    • setNextCursor

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