publish_survey
Publish a survey so it's live and can start collecting responses, and return its public share link — once published, anyone with that link can open and respond to the survey. Call this when the user asks to publish, launch, go live, or share a survey. Before calling, ask the user which display format they want the survey shown in — one question at a time (default), classic (all questions on one scrollable page), or conversational (chat-style) — unless they've already said or it's obvious they don't care, in which case just use the default. Safe to call on a survey that's already published — it won't re-publish, but passing viewType still updates the display format and share link if changed.
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": "publish_survey"
}
}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 or list_surveys | |
| viewType | No | Display format for the published survey: "o" = one question at a time (default if omitted), "l" = classic (all questions on one scrollable page), "c" = conversational (chat-style). Determines the -o/-l/-c suffix on the returned share link. |