Class BetaMcpToolUseBlockParam
-
- All Implemented Interfaces:
public final class BetaMcpToolUseBlockParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMcpToolUseBlockParam.BuilderA builder for BetaMcpToolUseBlockParam.
public final classBetaMcpToolUseBlockParam.Input
-
Method Summary
Modifier and Type Method Description final Stringid()final BetaMcpToolUseBlockParam.Inputinput()final Stringname()final StringserverName()The name of the MCP server final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("mcp_tool_use")final Optional<BetaCacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaMcpToolUseBlockParam.Input>_input()Returns the raw JSON value of input. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_serverName()Returns the raw JSON value of serverName. final JsonField<BetaCacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final Map<String, JsonValue>_additionalProperties()final BetaMcpToolUseBlockParam.BuildertoBuilder()final BetaMcpToolUseBlockParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMcpToolUseBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMcpToolUseBlockParam. -
-
Method Detail
-
input
final BetaMcpToolUseBlockParam.Input input()
-
serverName
final String serverName()
The name of the MCP server
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("mcp_tool_use")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
_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<BetaMcpToolUseBlockParam.Input> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_serverName
final JsonField<String> _serverName()
Returns the raw JSON value of serverName.
Unlike serverName, this method doesn't throw if the JSON field has an unexpected type.
-
_cacheControl
final JsonField<BetaCacheControlEphemeral> _cacheControl()
Returns the raw JSON value of cacheControl.
Unlike cacheControl, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaMcpToolUseBlockParam.Builder toBuilder()
-
validate
final BetaMcpToolUseBlockParam 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 BetaMcpToolUseBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaMcpToolUseBlockParam.
The following fields are required:
.id() .input() .name() .serverName()
-
-
-
-