Class BrowserReadPageToolUseBlock

    • Constructor Detail

    • Method Detail

      • caller

         final ToolUseCaller caller()

        Which party invoked the tool call: the model directly, or a server tool on its behalf.

      • input

         final BrowserReadPageInput input()

        Return a structured accessibility tree of the page (or the subtree rooted at ref), with element references like ref_7 that can be used as targets on later actions. Output is capped at 50,000 characters — narrow with ref or a smaller depth when exceeded.

      • _name

         final JsonValue _name()

        Expected to always return the following:

        JsonValue.from("read_page")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _toolsetName

         final JsonValue _toolsetName()

        Expected to always return the following:

        JsonValue.from("browser")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _type

         final JsonValue _type()

        Expected to always return the following:

        JsonValue.from("tool_use")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _id

         final JsonField<String> _id()

        Returns the raw JSON value of id.

        Unlike id, this method doesn't throw if the JSON field has an unexpected type.

      • _caller

         final JsonField<ToolUseCaller> _caller()

        Returns the raw JSON value of caller.

        Unlike caller, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final BrowserReadPageToolUseBlock validate()

        Validates that the types of all values in this object match their expected types recursively.

        This method is not forwards compatible with new types from the API for existing fields.