Class ComputerScrollToolUseBlock.Builder
-
- All Implemented Interfaces:
public final class ComputerScrollToolUseBlock.BuilderA builder for ComputerScrollToolUseBlock.
-
-
Method Summary
Modifier and Type Method Description final ComputerScrollToolUseBlock.Builderid(String id)final ComputerScrollToolUseBlock.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final ComputerScrollToolUseBlock.Buildercaller(ToolUseCaller caller)Which party invoked the tool call: the model directly, or a server tool on its behalf. final ComputerScrollToolUseBlock.Buildercaller(JsonField<ToolUseCaller> caller)Sets Builder.caller to an arbitrary JSON value. final ComputerScrollToolUseBlock.Buildercaller(DirectCaller direct)Alias for calling caller with ToolUseCaller.ofDirect(direct).final ComputerScrollToolUseBlock.Buildercaller(ServerToolCaller codeExecution20250825)Alias for calling caller with ToolUseCaller.ofCodeExecution20250825(codeExecution20250825).final ComputerScrollToolUseBlock.Buildercaller(ServerToolCaller20260120 codeExecution20260120)Alias for calling caller with ToolUseCaller.ofCodeExecution20260120(codeExecution20260120).final ComputerScrollToolUseBlock.Builderinput(ComputerScrollInput input)Scroll the screen at the specified (x, y) pixel coordinate, or the current cursor position if coordinateis omitted.final ComputerScrollToolUseBlock.Builderinput(JsonField<ComputerScrollInput> input)Sets Builder.input to an arbitrary JSON value. final ComputerScrollToolUseBlock.Buildername(JsonValue name)Sets the field to an arbitrary JSON value. final ComputerScrollToolUseBlock.BuildertoolsetName(JsonValue toolsetName)Sets the field to an arbitrary JSON value. final ComputerScrollToolUseBlock.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ComputerScrollToolUseBlock.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ComputerScrollToolUseBlock.BuildercodeExecution20250825Caller(String toolId)Alias for calling caller with the following: ServerToolCaller.builder() .toolId(toolId) .build()final ComputerScrollToolUseBlock.BuildercodeExecution20260120Caller(String toolId)Alias for calling caller with the following: ServerToolCaller20260120.builder() .toolId(toolId) .build()final ComputerScrollToolUseBlock.BuilderputAdditionalProperty(String key, JsonValue value)final ComputerScrollToolUseBlock.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ComputerScrollToolUseBlock.BuilderremoveAdditionalProperty(String key)final ComputerScrollToolUseBlock.BuilderremoveAllAdditionalProperties(Set<String> keys)final ComputerScrollToolUseBlockbuild()Returns an immutable instance of ComputerScrollToolUseBlock. -
-
Method Detail
-
id
final ComputerScrollToolUseBlock.Builder id(String id)
-
id
final ComputerScrollToolUseBlock.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final ComputerScrollToolUseBlock.Builder caller(ToolUseCaller caller)
Which party invoked the tool call: the model directly, or a server tool on its behalf.
-
caller
final ComputerScrollToolUseBlock.Builder caller(JsonField<ToolUseCaller> caller)
Sets Builder.caller to an arbitrary JSON value.
You should usually call Builder.caller with a well-typed ToolUseCaller value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final ComputerScrollToolUseBlock.Builder caller(DirectCaller direct)
Alias for calling caller with
ToolUseCaller.ofDirect(direct).
-
caller
final ComputerScrollToolUseBlock.Builder caller(ServerToolCaller codeExecution20250825)
Alias for calling caller with
ToolUseCaller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final ComputerScrollToolUseBlock.Builder caller(ServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
ToolUseCaller.ofCodeExecution20260120(codeExecution20260120).
-
input
final ComputerScrollToolUseBlock.Builder input(ComputerScrollInput 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.
-
input
final ComputerScrollToolUseBlock.Builder input(JsonField<ComputerScrollInput> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed ComputerScrollInput value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final ComputerScrollToolUseBlock.Builder name(JsonValue name)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("scroll")This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolsetName
final ComputerScrollToolUseBlock.Builder toolsetName(JsonValue toolsetName)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("computer")This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ComputerScrollToolUseBlock.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("tool_use")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ComputerScrollToolUseBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
codeExecution20250825Caller
final ComputerScrollToolUseBlock.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final ComputerScrollToolUseBlock.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller20260120.builder() .toolId(toolId) .build()
-
putAdditionalProperty
final ComputerScrollToolUseBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ComputerScrollToolUseBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ComputerScrollToolUseBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ComputerScrollToolUseBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ComputerScrollToolUseBlock build()
Returns an immutable instance of ComputerScrollToolUseBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .caller() .input()
-
-
-
-