supportsIconsAndSamplingTools static method

bool supportsIconsAndSamplingTools(
  1. String version
)

Whether the negotiated version understands icons, sampling tools / toolChoice, URL-mode elicitation, multi-select / default-valued elicitation primitives, and Implementation.description (all introduced in 2025-11-25). Mirrors the server package's McpProtocol.supportsIconsAndSamplingTools predicate so both sides gate the same behavior on the same negotiated revision.

Implementation

static bool supportsIconsAndSamplingTools(String version) =>
    version == v2025_11_25;