3232}
3333
3434
35- @requirement ("elicitation:form:accept" )
35+ @requirement ("elicitation:form:action:accept" )
36+ @requirement ("elicitation:form:basic" )
37+ @requirement ("tools:call:elicitation-roundtrip" )
3638async def test_elicit_form_accepted_content_returns_to_handler () -> None :
3739 """An accepted form elicitation returns the user's content to the requesting handler.
3840
@@ -86,7 +88,7 @@ async def answer_form(context: ClientRequestContext, params: types.ElicitRequest
8688 )
8789
8890
89- @requirement ("elicitation:form:decline" )
91+ @requirement ("elicitation:form:action: decline" )
9092async def test_elicit_form_decline_returns_no_content () -> None :
9193 """A declined form elicitation returns the decline action to the handler with no content."""
9294
@@ -113,7 +115,7 @@ async def answer_form(context: ClientRequestContext, params: types.ElicitRequest
113115 assert result == snapshot (CallToolResult (content = [TextContent (text = "decline content=None" )]))
114116
115117
116- @requirement ("elicitation:form:cancel" )
118+ @requirement ("elicitation:form:action: cancel" )
117119async def test_elicit_form_cancel_returns_no_content () -> None :
118120 """A cancelled form elicitation returns the cancel action to the handler with no content."""
119121
@@ -172,7 +174,8 @@ async def call_tool(ctx: ServerRequestContext, params: types.CallToolRequestPara
172174 assert result == snapshot (CallToolResult (content = [TextContent (text = "-32600: Elicitation not supported" )]))
173175
174176
175- @requirement ("elicitation:url:accept" )
177+ @requirement ("elicitation:url:action:accept-no-content" )
178+ @requirement ("elicitation:url:basic" )
176179async def test_elicit_url_delivers_url_and_returns_accept_without_content () -> None :
177180 """A URL elicitation delivers the message, URL, and elicitation id to the client; accepting it
178181 returns the action with no content.
@@ -276,7 +279,7 @@ async def answer_url(context: ClientRequestContext, params: types.ElicitRequestP
276279 assert result == snapshot (CallToolResult (content = [TextContent (text = "cancel content=None" )]))
277280
278281
279- @requirement ("elicitation:complete-notification" )
282+ @requirement ("elicitation:url: complete-notification" )
280283async def test_elicitation_complete_notification_carries_the_elicited_id_back_to_the_client () -> None :
281284 """After a URL elicitation finishes, the server announces it with a notification carrying the same id.
282285
0 commit comments