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