addTool
Registers a single tool. The client can then call this tool.
Parameters
A Tool object describing the tool.
A suspend function that handles executing the tool when called by the client.
Throws
If the server does not support tools.
Registers a single tool. The client can then call this tool.
Parameters
The name of the tool.
An optional human-readable name of the tool for display purposes.
A human-readable description of what the tool does.
The expected input schema for the tool.
The optional expected output schema for the tool.
Optional additional tool information.
Optional execution-related properties, such as task-augmented execution support.
Optional metadata as a JsonObject.
A suspend function that handles executing the tool when called by the client.
Throws
If the server does not support tools.