CallToolRequestParams

data class CallToolRequestParams(val name: String, val arguments: JsonObject? = null, val task: TaskMetadata? = null, val meta: RequestMeta? = null) : RequestParams(source)

Parameters for a tools/call request.

Constructors

Link copied to clipboard
constructor(name: String, arguments: JsonObject? = null, task: TaskMetadata? = null, meta: RequestMeta? = null)

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
@SerialName(value = "_meta")
open override val meta: RequestMeta?

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

Link copied to clipboard

The name of the tool to invoke.

Link copied to clipboard

If set, requests task-augmented execution. A receiver that supports it returns a CreateTaskResult (result via tasks/result); otherwise it returns a CallToolResult directly.