buildCallToolRequest
Creates a CallToolRequest using a type-safe DSL builder.
Required
name - The name of the tool to call
Optional
Example without arguments:
val request = buildCallToolRequest {
name = "getCurrentTime"
}Content copied to clipboard
Example with arguments:
val request = buildCallToolRequest {
name = "searchDatabase"
arguments {
put("query", "users")
put("limit", 10)
}
}Content copied to clipboard
Return
A configured CallToolRequest instance
Parameters
block
Configuration lambda for setting up the call tool request