Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
package io.modelcontextprotocol.kotlin.sdk

import io.modelcontextprotocol.kotlin.sdk.shared.McpJson
import kotlinx.serialization.EncodeDefault
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonElement
import kotlinx.serialization.json.JsonObject
Expand Down Expand Up @@ -1043,6 +1046,7 @@ public data class Tool(
/**
* A JSON object defining the expected parameters for the tool.
*/
@SerialName("input_schema")
val inputSchema: Input,
) {
@Serializable
Expand Down
4 changes: 2 additions & 2 deletions src/commonTest/kotlin/ToolSerializationTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ToolSerializationTest {
{
"name": "get_weather",
"description": "Get the current weather in a given location",
"inputSchema": {
"input_schema": {
"type": "object",
"properties": {
"location": {
Expand Down Expand Up @@ -54,4 +54,4 @@ class ToolSerializationTest {
assertEquals(expected = getWeatherTool, actual = tool)
}

}
}
Loading