McpClient.callTool
- CallToolResult callTool(string name, Json arguments, RequestOptions opts)
- CallToolResult callTool(string name, T args, RequestOptions opts)
- CallToolResult callTool(string name, Json arguments, void delegate(ProgressNotification) @(safe) onProgress)
- CallToolResult callTool(string name, T args, void delegate(ProgressNotification) @(safe) onProgress)
- CallToolResult callTool(Tool tool, Json arguments, RequestOptions opts)
mcp client client McpClient
constructorsfunctionsstatic functionsvariables
tools/call for a tool whose descriptor (and therefore outputSchema) is known — typically one returned by listTools. When the client has output- schema validation enabled (see enableOutputSchemaValidation) and tool carries an outputSchema, the returned structuredContent is validated against it: per the spec, "Clients SHOULD validate structured results against this schema." A non-conforming result raises a clear McpException rather than being accepted silently.