Package-level declarations

Types

Link copied to clipboard
@Serializable
@SerialName(value = "tools/call")
data class CallToolRequest(val id: String, val params: CallToolRequest.CallToolParams) : JsonRpcRequest
Link copied to clipboard
@Serializable
data class CallToolResult(val content: List<ToolContent> = emptyList(), val isError: Boolean? = null, val _meta: Map<String, JsonElement>? = null) : Result
Link copied to clipboard
@Serializable
@SerialName(value = "tools/list")
data class ListToolsRequest(val id: String, val params: ListToolsRequest.ListToolsParams? = null) : JsonRpcRequest
Link copied to clipboard
@Serializable
data class ListToolsResult(val tools: List<Tool>, val _meta: Map<String, JsonElement>? = null, val nextCursor: String? = null) : PaginatedResult
Link copied to clipboard
@Serializable
data class Tool(val name: String, val description: String? = null, val inputSchema: Schema)
Link copied to clipboard
@Serializable
@SerialName(value = "notifications/tools/list_changed")
data class ToolListChangedNotification(val params: NotificationParams? = null) : JsonRpcNotification

A notification from the server to the client that the list of tools has changed. The client may issue a tools/list request to get the updated list.