Class CallToolRequestParams
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents the parameters used with a ToolsCall request from a client to invoke a tool provided by the server.
public class CallToolRequestParams : RequestParams
- Inheritance
-
CallToolRequestParams
- Inherited Members
Remarks
The server will respond with a CallToolResponse containing the result of the tool invocation. See the schema for details.
Properties
Arguments
Gets or sets optional arguments to pass to the tool when invoking it on the server.
[JsonPropertyName("arguments")]
public IReadOnlyDictionary<string, JsonElement>? Arguments { get; init; }
Property Value
Remarks
This dictionary contains the parameter values to be passed to the tool. Each key-value pair represents a parameter name and its corresponding argument value.
Name
Gets or sets the name of the tool to invoke.
[JsonPropertyName("name")]
public required string Name { get; init; }