Preview Survey
preview_surveyRender an interactive respondent-style preview of a survey or a single question, with demo-only answer controls for supported question types. The full-survey view supports block tabs; the question view isolates one question with prev/next navigation.
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": {
"survey_id": "<survey_id>"
},
"name": "preview_survey"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | 'survey' (default) shows the full block with all its questions. 'question' isolates a single question with Prev/Next question navigation across the whole survey — use this when the user wants to see just one question at a time. Defaults to 'question' if question_id is set, otherwise 'survey'. | |
| block_id | No | Block UUID to open the preview on (default: first block). Ignored if question_id is set. | |
| survey_id | Yes | Survey UUID | |
| question_id | No | Question UUID to open on. In the default 'survey' view this scrolls to and highlights the question within its block; in 'question' view (the default when question_id is set) it opens directly on just that question. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |