Render Question Form
render_questionRender native UI question forms to collect structured, validated user input, replacing back-and-forth chat with clear fields, options, and validation rules.
Instructions
Render custom question forms and collect structured, validated user input through native UI forms.
QUESTION TYPES:
text: Single-line or multi-line text input (supports email, URI, date formats)
number: Numeric input with min/max constraints
boolean: Single checkbox/toggle (true/false)
radio: Single choice from options (radio buttons)
dropdown: Single choice from options (select menu)
checkbox: IMPORTANT - Use WITHOUT options for boolean fields. For multi-select, use multiple separate boolean/checkbox questions instead (MCP elicitation protocol doesn't support arrays).
MULTI-SELECT WORKAROUND: Due to MCP elicitation protocol limitations, true multi-select (array responses) is not supported. To create multi-select questions:
Create multiple separate checkbox/boolean questions, one per option
Each question should have a unique id (e.g., "interest_coding", "interest_design")
User can check multiple boxes independently
Response will contain separate boolean fields for each option
EXAMPLES: Single boolean checkbox: { id: "agree", type: "checkbox", label: "I agree", validation: { required: true } }
Multi-select (workaround): [ { id: "lang_typescript", type: "checkbox", label: "TypeScript" }, { id: "lang_python", type: "checkbox", label: "Python" }, { id: "lang_rust", type: "checkbox", label: "Rust" } ]
Single choice: { id: "role", type: "dropdown", label: "Role", options: [{value: "dev", label: "Developer"}] }
VALIDATION:
required: boolean - Field must be filled
min/max: number - For number type (value constraints) or checkbox with options (minItems/maxItems)
minLength/maxLength: number - For text type (character count)
pattern: string - Regex pattern for text validation
format: "email" | "uri" | "url" | "date" | "date-time" - For text type only
errorMessage: string - Custom validation error message
Use this tool instead of conversational back-and-forth when you need structured, validated data from users.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"questions": "<questions>"
},
"name": "render_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional title displayed at the top of the form | |
| questions | Yes | Array of questions to ask the user. For multi-select, use multiple checkbox questions (one per option) instead of checkbox with options array. | |
| description | No | Optional description/instructions shown below the title |