Template Create Survey From
template_create_survey_fromCreate a new draft survey from a template (templateId from template_lookup or template_list). Returns { kind: 'survey', survey } with the new survey.id, or { kind: 'concept_test', conceptTestId } for a concept-test template, or { kind: 'diary_study', studyId, studyUrl } for a diary-study template: a study with a copy of each day's survey, whose days start once the user sets a start date at studyUrl. A survey result has no links: call survey_get with survey.id for editorUrl and shareUrl, and give the user the editor link as a clickable absolute link; for a diary study give the user studyUrl the same way. Not idempotent: each call creates another survey or study.
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": {
"templateId": "<templateId>"
},
"name": "template_create_survey_from"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language code for the survey, such as 'es' or 'pt-BR'. The copy is made in this one language when the template is translated into it, otherwise in English. Omit for English. More languages can be added in the editor. | |
| templateId | Yes | Template ID (from template_lookup or template_list) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |