Tool

Description of a Tool capability.

Constructors

Link copied to clipboard
constructor(name: String, description: String, vararg arguments: McpCapabilityLens<ToolRequest, *>, output: McpCapabilityLens<ToolResponse.Ok, *>? = null, title: String? = null, annotations: ToolAnnotations? = null)

Types

Link copied to clipboard
data object Arg

A typesafe tool argument lens. Use the extension functions below to create a lens for a specific type.

Link copied to clipboard
class ArgList<T>(val delegate: List<T>) : List<T>
Link copied to clipboard
data object Output

A typesafe tool response lens. Use the extension functions below to create a lens for a specific type.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val title: String? = null