Skip to main content

Module inputs

Module inputs 

Source
Expand description

Answering a server’s request for input (SEP-2322, 2026-07-28).

A server cannot send a request of its own at this revision, so a call that needs the user answers with an InputRequiredResult: resultType: "input_required", the questions in inputRequests, and optionally a requestState of its own. The client answers by retrying the original request with inputResponses keyed as the questions were, echoing requestState back unchanged — and sending none when the server sent none. Every retry is a new JSON-RPC request with a new id. https://modelcontextprotocol.io/specification/2026-07-28/basic/patterns/mrtr

This works on any method the SEP names (tools/call, prompts/get, resources/read) and over any ClientTransport, handshake or not.

Structs§

InputAnswers
What a client answers an InputRequiredResult with.

Constants§

MAX_INPUT_ROUNDS
How many times a call may be retried with fresh input before it fails.

Traits§

InputResolver
Answers one input request.

Functions§

answer_input_required
Answers result if it is an interim InputRequiredResult.
call_resolving
Sends method with params, answering input requests through resolve.