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