Class ToolMetadata
- Namespace
- nanoFramework.WebServer.Mcp
- Assembly
- nanoFramework.WebServer.Mcp.dll
Represents metadata information for a registered tool, including its name, description, input/output types, and associated method.
public class ToolMetadata
- Inheritance
-
ToolMetadata
- Inherited Members
- Extension Methods
Constructors
ToolMetadata()
public ToolMetadata()
Properties
Description
Gets or sets the description of the tool.
public string Description { get; set; }
Property Value
InputType
Gets or sets the JSON schema string describing the input parameters for the tool.
public string InputType { get; set; }
Property Value
Method
Gets or sets the MethodInfo representing the method associated with the tool.
public MethodInfo Method { get; set; }
Property Value
MethodType
Gets or sets the type of the method associated with the tool.
public Type MethodType { get; set; }
Property Value
Name
Gets or sets the unique name of the tool.
public string Name { get; set; }
Property Value
OutputDescription
Gets or sets the description of the tool's output.
public string OutputDescription { get; set; }
Property Value
OutputType
Gets or sets the JSON schema string describing the output type for the tool.
public string OutputType { get; set; }
Property Value
Methods
ToString()
Returns a JSON string representation of the tool metadata.
public override string ToString()
Returns
- string
A JSON string containing the tool's name, description, input, and output schema.