CallToolRequest

Used by the client to invoke a tool provided by the server.

Tools allow servers to expose functionality that clients (and LLMs) can call. Examples include file operations, API calls, database queries, or any other server-side operations.

Constructors

Link copied to clipboard
constructor(params: CallToolRequestParams)

Properties

Link copied to clipboard

Arguments to pass to the tool. Keys are argument names, values are the argument values. The structure must match the tool's input schema.

Link copied to clipboard

Metadata for this request. May include a progressToken for out-of-band progress notifications.

Link copied to clipboard
open override val method: Method
Link copied to clipboard

The name of the tool to invoke.

Link copied to clipboard
open override val params: CallToolRequestParams

The parameters specifying which tool to call and what arguments to pass.

Functions

Link copied to clipboard

Converts the request to a JSON-RPC request.