McpClient.buildToolCallParams

Build the tools/call params with any gathered MRTR (SEP-2322) input responses attached as the top-level params.inputResponses map, and the opaque requestState echoed back as params.requestState. Per SEP-2322 these are RequestParams fields, NOT _meta entries. With no responses and no requestState this is identical to the plain buildToolCallParams. Separated as a package static so the resubmission param shaping can be unit-tested without a live server.

  1. Json buildToolCallParams(string name, Json arguments, ProgressToken progressToken)
  2. Json buildToolCallParams(string name, Json arguments, ProgressToken progressToken, InputResponse[] responses, string requestState)
    class McpClient
    package static @safe
    Json
    buildToolCallParams