Interface ToolDescriptor.Builder
- Enclosing interface:
ToolDescriptor
public static interface ToolDescriptor.Builder
Builder for
ToolDescriptor.-
Method Summary
Modifier and TypeMethodDescriptionannotations(@Nullable ToolAnnotations annotations) Sets the optional behavioral annotations (e.g. read-only, destructive) for this tool.build()Builds theToolDescriptor.description(@Nullable String description) Sets the optional description of this tool.extensionId(@Nullable String extensionId) Sets the optional identifier of the extension that owns this tool.default ToolDescriptor.BuilderSets the optional icons for this tool.Sets the optional icons for this tool.inputSchema(@Nullable JsonSchema inputSchema) Sets the optional JSON schema describing the tool's input arguments.default ToolDescriptor.BuilderinputSchema(@Nullable String inputSchema) Sets the optional JSON schema describing the tool's input arguments, parsed from a string.Sets optional protocol extension metadata.Sets the tool name, unique within the server.outputSchema(@Nullable JsonSchema outputSchema) Sets the optional JSON schema describing the tool's output.default ToolDescriptor.BuilderoutputSchema(@Nullable String outputSchema) Sets the optional JSON schema describing the tool's output, parsed from a string.taskSupport(@Nullable TaskSupport taskSupport) Sets the optional declaration of this tool's support for long-running tasks.Sets the optional human-readable title.
-
Method Details
-
name
Sets the tool name, unique within the server. -
title
Sets the optional human-readable title. -
description
Sets the optional description of this tool. -
inputSchema
Sets the optional JSON schema describing the tool's input arguments. -
outputSchema
Sets the optional JSON schema describing the tool's output. -
inputSchema
Sets the optional JSON schema describing the tool's input arguments, parsed from a string. -
outputSchema
Sets the optional JSON schema describing the tool's output, parsed from a string. -
taskSupport
Sets the optional declaration of this tool's support for long-running tasks. -
annotations
Sets the optional behavioral annotations (e.g. read-only, destructive) for this tool. -
icons
Sets the optional icons for this tool. -
icons
Sets the optional icons for this tool. -
extensionId
Sets the optional identifier of the extension that owns this tool. -
meta
Sets optional protocol extension metadata.- Parameters:
entries- metadata entries, ornullfor none
-
build
ToolDescriptor build()Builds theToolDescriptor.
-