public static class McpSchema.Tool
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
McpSchema.Tool.Builder |
| 构造器和说明 |
|---|
Tool(java.lang.String name,
java.lang.String title,
java.lang.String description,
McpSchema.JsonSchema inputSchema,
java.util.Map<java.lang.String,java.lang.Object> outputSchema,
McpSchema.ToolAnnotations annotations,
java.util.Map<java.lang.String,java.lang.Object> meta) |
| 限定符和类型 | 方法和说明 |
|---|---|
McpSchema.ToolAnnotations |
annotations() |
static McpSchema.Tool.Builder |
builder() |
java.lang.String |
description() |
McpSchema.JsonSchema |
inputSchema() |
java.util.Map<java.lang.String,java.lang.Object> |
meta() |
java.lang.String |
name() |
java.util.Map<java.lang.String,java.lang.Object> |
outputSchema() |
java.lang.String |
title() |
public Tool(java.lang.String name,
java.lang.String title,
java.lang.String description,
McpSchema.JsonSchema inputSchema,
java.util.Map<java.lang.String,java.lang.Object> outputSchema,
McpSchema.ToolAnnotations annotations,
java.util.Map<java.lang.String,java.lang.Object> meta)
name - A unique identifier for the tool. This name is used when calling the
tool.title - A human-readable title for the tool.description - A human-readable description of what the tool does. This can be
used by clients to improve the LLM's understanding of available tools.inputSchema - A JSON Schema object that describes the expected structure of
the arguments when calling this tool. This allows clients to validate tooloutputSchema - An optional JSON Schema object defining the structure of the
tool's output returned in the structuredContent field of a CallToolResult.annotations - Optional additional tool information.meta - See specification for notes on _meta usagepublic java.lang.String name()
public java.lang.String title()
public java.lang.String description()
public McpSchema.JsonSchema inputSchema()
public java.util.Map<java.lang.String,java.lang.Object> outputSchema()
public McpSchema.ToolAnnotations annotations()
public java.util.Map<java.lang.String,java.lang.Object> meta()
public static McpSchema.Tool.Builder builder()