Class BetaBrowserZoomToolUseBlock.Builder
-
- All Implemented Interfaces:
public final class BetaBrowserZoomToolUseBlock.BuilderA builder for BetaBrowserZoomToolUseBlock.
-
-
Method Summary
Modifier and Type Method Description final BetaBrowserZoomToolUseBlock.Builderid(String id)final BetaBrowserZoomToolUseBlock.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BetaBrowserZoomToolUseBlock.Builderinput(BetaBrowserZoomInput input)Return a cropped screenshot of the given viewport region, scaled up for closer inspection — useful for small icons, buttons, or text. final BetaBrowserZoomToolUseBlock.Builderinput(JsonField<BetaBrowserZoomInput> input)Sets Builder.input to an arbitrary JSON value. final BetaBrowserZoomToolUseBlock.Buildername(JsonValue name)Sets the field to an arbitrary JSON value. final BetaBrowserZoomToolUseBlock.BuildertoolsetName(JsonValue toolsetName)Sets the field to an arbitrary JSON value. final BetaBrowserZoomToolUseBlock.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaBrowserZoomToolUseBlock.Buildercaller(BetaToolUseCaller caller)Which party invoked the tool call: the model directly, or a server tool on its behalf. final BetaBrowserZoomToolUseBlock.Buildercaller(JsonField<BetaToolUseCaller> caller)Sets Builder.caller to an arbitrary JSON value. final BetaBrowserZoomToolUseBlock.Buildercaller(BetaDirectCaller direct)Alias for calling caller with BetaToolUseCaller.ofDirect(direct).final BetaBrowserZoomToolUseBlock.Buildercaller(BetaServerToolCaller codeExecution20250825)Alias for calling caller with BetaToolUseCaller.ofCodeExecution20250825(codeExecution20250825).final BetaBrowserZoomToolUseBlock.Buildercaller(BetaServerToolCaller20260120 codeExecution20260120)Alias for calling caller with BetaToolUseCaller.ofCodeExecution20260120(codeExecution20260120).final BetaBrowserZoomToolUseBlock.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaBrowserZoomToolUseBlock.BuildercodeExecution20250825Caller(String toolId)Alias for calling caller with the following: BetaServerToolCaller.builder() .toolId(toolId) .build()final BetaBrowserZoomToolUseBlock.BuildercodeExecution20260120Caller(String toolId)Alias for calling caller with the following: BetaServerToolCaller20260120.builder() .toolId(toolId) .build()final BetaBrowserZoomToolUseBlock.BuilderputAdditionalProperty(String key, JsonValue value)final BetaBrowserZoomToolUseBlock.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaBrowserZoomToolUseBlock.BuilderremoveAdditionalProperty(String key)final BetaBrowserZoomToolUseBlock.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaBrowserZoomToolUseBlockbuild()Returns an immutable instance of BetaBrowserZoomToolUseBlock. -
-
Method Detail
-
id
final BetaBrowserZoomToolUseBlock.Builder id(String id)
-
id
final BetaBrowserZoomToolUseBlock.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.
-
input
final BetaBrowserZoomToolUseBlock.Builder input(BetaBrowserZoomInput input)
Return a cropped screenshot of the given viewport region, scaled up for closer inspection — useful for small icons, buttons, or text. Coordinates are in the same viewport-pixel space as a full screenshot.
-
input
final BetaBrowserZoomToolUseBlock.Builder input(JsonField<BetaBrowserZoomInput> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed BetaBrowserZoomInput value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final BetaBrowserZoomToolUseBlock.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("zoom")This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolsetName
final BetaBrowserZoomToolUseBlock.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("browser")This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaBrowserZoomToolUseBlock.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.
-
caller
final BetaBrowserZoomToolUseBlock.Builder caller(BetaToolUseCaller caller)
Which party invoked the tool call: the model directly, or a server tool on its behalf.
-
caller
final BetaBrowserZoomToolUseBlock.Builder caller(JsonField<BetaToolUseCaller> caller)
Sets Builder.caller to an arbitrary JSON value.
You should usually call Builder.caller with a well-typed BetaToolUseCaller value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final BetaBrowserZoomToolUseBlock.Builder caller(BetaDirectCaller direct)
Alias for calling caller with
BetaToolUseCaller.ofDirect(direct).
-
caller
final BetaBrowserZoomToolUseBlock.Builder caller(BetaServerToolCaller codeExecution20250825)
Alias for calling caller with
BetaToolUseCaller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final BetaBrowserZoomToolUseBlock.Builder caller(BetaServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
BetaToolUseCaller.ofCodeExecution20260120(codeExecution20260120).
-
additionalProperties
final BetaBrowserZoomToolUseBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
codeExecution20250825Caller
final BetaBrowserZoomToolUseBlock.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
BetaServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final BetaBrowserZoomToolUseBlock.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
BetaServerToolCaller20260120.builder() .toolId(toolId) .build()
-
putAdditionalProperty
final BetaBrowserZoomToolUseBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaBrowserZoomToolUseBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaBrowserZoomToolUseBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaBrowserZoomToolUseBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaBrowserZoomToolUseBlock build()
Returns an immutable instance of BetaBrowserZoomToolUseBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .input()
-
-
-
-