Skip to main content
Servers can ask the client for user input mid-tool-call via elicitation/create. Two modes:
  • Form — structured fields with a JSON schema
  • URL — redirect the user to an external page (required for credentials/OAuth)

Setup

Helpers

Import from @mcp-use/client:

React

With the provider, use pendingElicitationRequests and approveElicitation / rejectElicitation. Without an onElicitation handler, tool calls that require input will fail.

Reference

Server-side: Elicitation