Record Class McpNetworkTransactionList

java.lang.Object
java.lang.Record
com.shaft.mcp.McpNetworkTransactionList
Record Components:
transactions - matched transactions, bounded by the requested limit
totalMatched - total transactions matching the filter before the limit was applied
truncated - whether totalMatched exceeded the requested limit
warnings - safe warnings, such as no transactions observed yet
detail - full detail (headers and a truncated, redacted response body preview) for the single transaction matching the requested id; null unless an id was supplied and matched exactly one transaction. Absorbs the former browser_network_request tool (design doc Decision 2).

public record McpNetworkTransactionList(List<McpNetworkTransaction> transactions, int totalMatched, boolean truncated, List<String> warnings, McpNetworkTransactionDetail detail) extends Record
Network transaction listing returned by browser_network_requests.
  • Constructor Details

    • McpNetworkTransactionList

      public McpNetworkTransactionList(List<McpNetworkTransaction> transactions, int totalMatched, boolean truncated, List<String> warnings, McpNetworkTransactionDetail detail)
      Creates an instance of a McpNetworkTransactionList record class.
      Parameters:
      transactions - the value for the transactions record component
      totalMatched - the value for the totalMatched record component
      truncated - the value for the truncated record component
      warnings - the value for the warnings record component
      detail - the value for the detail record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • transactions

      public List<McpNetworkTransaction> transactions()
      Returns the value of the transactions record component.
      Returns:
      the value of the transactions record component
    • totalMatched

      public int totalMatched()
      Returns the value of the totalMatched record component.
      Returns:
      the value of the totalMatched record component
    • truncated

      public boolean truncated()
      Returns the value of the truncated record component.
      Returns:
      the value of the truncated record component
    • warnings

      public List<String> warnings()
      Returns the value of the warnings record component.
      Returns:
      the value of the warnings record component
    • detail

      public McpNetworkTransactionDetail detail()
      Returns the value of the detail record component.
      Returns:
      the value of the detail record component