get_survey_details
Retrieve the full survey JSON (questions, options, welcome/thank-you screens) for a survey previously created with create_survey. If the survey has no encryption keys yet (e.g. it was created before its team's key was escrowed), this also attempts to generate and attach them automatically, the same way opening a keyless survey in the real BlockSurvey builder does - silent and best-effort, never a reason this call fails. The raw displayLogics map is shared by THREE separate builder features, distinguishable only by what its key is: an entry keyed by a question's own id is that question's Display Logic; an entry keyed by survey.submit.id is the submit button's Display Logic; an entry keyed by an OPTION's (or matrix row's/column's) id is Answer Logic — a distinct, per-choice feature, never call it "Display Logic (option-level)" or similar. Likewise logics is shared between question-level Jump Logic and thank-you-screen logic, keyed by question id vs. screen id respectively. To VERIFY whether a specific piece of display/answer/jump/thank-you-screen logic was actually added, changed, or removed — e.g. confirming a prior add/update/delete call took effect — call the matching get_display_logic/get_answer_logic/get_jump_logic/get_thankyou_screen_logic tool for that exact target instead of re-pulling this whole survey and inspecting displayLogics/logics yourself; those tools already resolve and correctly label everything this map conflates, so re-deriving it by hand is exactly how "Answer Logic" gets miscalled "Display Logic" or a target gets misidentified. If you do end up looking at displayLogics/logics here for some other reason, never describe them to the user as "the displayLogics map," "keyed by X," or similar — that's internal storage detail, not something to explain. When summarizing this for the user, focus on what they asked about — don't volunteer every field present. This is internal builder-JSON, not end-user language: NEVER quote a raw field/property name to the user (e.g. preventDuplicateSubmission, preventDuplicateSubmissionByAnswer, hideAssignVariable, conidition — that last one is the real app's own typo, not yours to explain) — translate every fact into plain English instead ("this question is used to detect duplicate submissions", not "it has preventDuplicateSubmission: true set on it"). And never speculate about what a field probably does or how it's probably implemented (e.g. "likely alongside device/session-based detection") — state only what you can actually confirm from the data, and say plainly that you're not sure rather than inventing a plausible-sounding mechanism.
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": {
"surveyId": "<surveyId>"
},
"name": "get_survey_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teamId | No | Which team workspace to act in (ids come from get_account_info or list_surveys). Optional: if omitted, the server uses the team that owns the given surveyId, or your only team. Required for create_survey when you belong to several teams. | |
| surveyId | Yes | The Survey ID returned by create_survey |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| survey | Yes | The raw survey object: questions, options, welcome/thank-you screens, and other builder-managed fields |