Skip to main content
The MCP-context widgets — elicitation forms and structured-output rendering.

ElicitationForm

Render the elicit message + a schema-driven answer form. On submit the answer is validated against the schema; on success onSubmit receives the typed value, otherwise the per-field errors surface and nothing is emitted. Props Related: ElicitationFormProps

ElicitationFormProps

Properties Related: JsonSchema

StructuredOutput

Render content through schema. An object schema drives a labeled, ordered field list (each value shown with a JsonTree); anything else — no schema, a non-object schema, or content that is not a matching object — renders the raw content through a single JsonTree. Props Related: StructuredOutputProps

StructuredOutputProps

Properties Related: JsonSchema