python-sdk/examples/stories/mrtr
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-26 12:02:27 +02:00
..
README.md Add story-style examples suite (27 stories + harness + CI) (#2957) 2026-06-26 12:02:27 +02:00

mrtr

Multi-round tool results: a 2026-era tool call returns resultType: "input_required" with a requestState HMAC instead of pushing an elicitation/create request. The client fulfils the input and resubmits, and the server resumes from the carried state. The story will show both the auto-fulfil helper and a manual resubmit loop.

Status: not yet implemented (#2898). The lowlevel registration surface is in this base — #2967 (ae13ede) widened the tool/prompt/resource handler return types to include InputRequiredResult. The runnable story is deliberately a follow-up PR to keep this one reviewable.

Spec

Multi-round tool results — server features

Working example elsewhere

The TypeScript SDK ships a runnable mrtr story: typescript-sdk/examples/mrtr.

See also

legacy_elicitation/ and sampling/ — the handshake-era push equivalents that this mechanism replaces on the 2026 protocol. The TypeScript SDK ships a single dual-era elicitation/ story covering both eras in one place; we re-merge legacy_elicitation/ back into elicitation/ once MRTR lands.