CallToolRequestBuilder

DSL builder for constructing CallToolRequest instances.

This builder invokes a specific tool by name with optional arguments.

Required

  • name - The name of the tool to call

Optional

  • arguments - Arguments to pass to the tool

  • meta - Metadata for the request

See also

Properties

Link copied to clipboard
var name: String?

The name of the tool to call. This is a required field.

Functions

Link copied to clipboard
fun arguments(block: JsonObjectBuilder.() -> Unit)

Sets tool arguments using a DSL builder.

fun arguments(arguments: JsonObject)

Sets tool arguments directly from a JsonObject.

Link copied to clipboard
fun meta(builderAction: RequestMetaBuilder.() -> Unit)

Sets request metadata using a DSL builder.