ToolExecution

Per-tool task-augmented execution descriptor (Tool.execution), introduced in MCP 2025-11-25. Lets a tool declare whether it supports the tasks augmentation when invoked via tools/call.

taskSupport is one of "forbidden" (default when absent — the tool does not support task-augmented execution), "optional" (the client may request it), or "required" (the tool must be invoked as a task). The field is omitted from the serialized form when unset, which the spec treats as "forbidden".

@safe
struct ToolExecution {}

Members

Functions

empty
bool empty()

True when no field is set (serializes to an empty object).

Variables

taskSupport
Nullable!string taskSupport;

"forbidden" (default) | "optional" | "required"