Class BetaComputerScrollToolUseBlock
-
- All Implemented Interfaces:
public final class BetaComputerScrollToolUseBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaComputerScrollToolUseBlock.BuilderA builder for BetaComputerScrollToolUseBlock.
-
Method Summary
Modifier and Type Method Description final Stringid()final BetaComputerScrollInputinput()Scroll the screen at the specified (x, y) pixel coordinate, or the current cursor position if coordinateis omitted.final Optional<BetaToolUseCaller>caller()Which party invoked the tool call: the model directly, or a server tool on its behalf. final JsonValue_name()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("scroll")final JsonValue_toolsetName()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("computer")final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("tool_use")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaComputerScrollInput>_input()Returns the raw JSON value of input. final JsonField<BetaToolUseCaller>_caller()Returns the raw JSON value of caller. final Map<String, JsonValue>_additionalProperties()final BetaComputerScrollToolUseBlock.BuildertoBuilder()final BetaComputerScrollToolUseBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaComputerScrollToolUseBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaComputerScrollToolUseBlock. -
-
Method Detail
-
input
final BetaComputerScrollInput input()
Scroll the screen at the specified (x, y) pixel coordinate, or the current cursor position if
coordinateis omitted. Do NOT use PageUp/PageDown to scroll.
-
caller
final Optional<BetaToolUseCaller> caller()
Which party invoked the tool call: the model directly, or a server tool on its behalf.
-
_name
final JsonValue _name()
Expected to always return the following:
JsonValue.from("scroll")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("computer")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.
-
_input
final JsonField<BetaComputerScrollInput> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_caller
final JsonField<BetaToolUseCaller> _caller()
Returns the raw JSON value of caller.
Unlike caller, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaComputerScrollToolUseBlock.Builder toBuilder()
-
validate
final BetaComputerScrollToolUseBlock 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.
-
builder
final static BetaComputerScrollToolUseBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaComputerScrollToolUseBlock.
The following fields are required:
.id() .input()
-
-
-
-