poll.chiragvijay.com
Build surveys, share them, and understand the responses. Poll gives your browser agent tools to work alongside you, powered by WebMCP.
First seen 2026-11-05 · Last seen 2026-11-05 · Source: webmcp.com
Answer 10 · Act 8 · Transact 0 · Score: Not yet scored
Tool inspector
edit_survey
Save edits to this survey. Pass revision from get_survey. Returns the new revision, outline, and a check.
Page: /demo/surveys/01K00000000000000000000001/build
Input schema
| Property | Type | Required | Description |
|---|---|---|---|
revision |
integer | yes | revision from get_survey. |
survey |
object | no | Survey-level fields. Omitted fields stay unchanged. |
addPages |
array | no | — |
updatePages |
array | no | — |
movePages |
array | no | — |
addQuestions |
array | no | Example: [{ "ref": "ease", "type": "rating", "prompt": "How satisfied are you?", "min": 1, "max": 5 }] |
updateQuestions |
array | no | — |
replaceQuestions |
array | no | Change a question's type, choices, or validation while preserving its ID. |
moveQuestions |
array | no | — |
deleteQuestions |
array | no | — |
deletePages |
array | no | — |
surveyId |
string | no | Defaults to the survey on screen. |
Raw JSON schema
{
"type": "object",
"required": [
"revision"
],
"additionalProperties": false,
"properties": {
"revision": {
"type": "integer",
"minimum": 0,
"description": "revision from get_survey."
},
"survey": {
"type": "object",
"additionalProperties": false,
"description": "Survey-level fields. Omitted fields stay unchanged.",
"properties": {
"title": {
"type": "string",
"maxLength": 500
},
"description": {
"type": "string",
"maxLength": 20000
},
"eligibility": {
"type": "string",
"maxLength": 2000
},
"estimatedMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 600
},
"progressDisplay": {
"type": "string",
"enum": [
"none",
"bar",
"pages"
]
},
"reviewStep": {
"type": "boolean"
},
"consentLanguage": {
"type": "string",
"maxLength": 20000
},
"consentDataUse": {
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"allowResume": {
"type": "boolean"
},
"allowReviseUntil": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"anonymizeByDefault": {
"type": "boolean"
}
}
},
"addPages": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"ref": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"title": {
"type": "string",
"maxLength": 500,
"default": "Questions"
},
"intro": {
"type": "string",
"maxLength": 20000
},
"position": {
"type": "integer",
"minimum": 1,
"description": "One-based position; omit to append."
}
}
}
},
"updatePages": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"page"
],
"properties": {
"page": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"title": {
"type": "string",
"maxLength": 500
},
"intro": {
"anyOf": [
{
"type": "string",
"maxLength": 20000
},
{
"type": "null"
}
]
},
"showWhen": {
"anyOf": [
{
"$ref": "#/$defs/showWhen"
},
{
"type": "null"
}
]
}
}
}
},
"movePages": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"page",
"position"
],
"properties": {
"page": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"position": {
"type": "integer",
"minimum": 1,
"description": "One-based position; omit to append."
}
}
}
},
"addQuestions": {
"type": "array",
"maxItems": 100,
"description": "Example: [{ \"ref\": \"ease\", \"type\": \"rating\", \"prompt\": \"How satisfied are you?\", \"min\": 1, \"max\": 5 }]",
"items": {
"type": "object",
"properties": {
"ref": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "Short name for later edits or conditions in this call."
},
"page": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "Page ID or same-call ref; defaults to the first page."
},
"position": {
"type": "integer",
"minimum": 1,
"description": "One-based position; omit to append."
},
"type": {
"type": "string",
"enum": [
"short_text",
"long_text",
"single_choice",
"multiple_choice",
"dropdown",
"rating",
"number",
"date",
"yes_no"
],
"description": "Question type. Use rating for a numbered scale."
},
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 20000
},
"required": {
"type": "boolean",
"default": false
},
"helpText": {
"type": "string",
"maxLength": 20000
},
"showWhen": {
"$ref": "#/$defs/showWhen"
},
"options": {
"type": "array",
"minItems": 2,
"maxItems": 100,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"description": "Required for choice and dropdown types."
},
"minLength": {
"type": "integer",
"minimum": 0,
"description": "Text types only."
},
"maxLength": {
"type": "integer",
"minimum": 1,
"description": "Text types only."
},
"pattern": {
"type": "string",
"maxLength": 500,
"description": "Text types only."
},
"min": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date"
}
],
"description": "Required integer for rating; optional number/date for number and date types."
},
"max": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date"
}
],
"description": "Required integer for rating; optional number/date for number and date types."
},
"step": {
"type": "number",
"exclusiveMinimum": 0,
"default": 1,
"description": "Rating or number types only."
},
"integer": {
"type": "boolean",
"default": false,
"description": "Number type only."
},
"minLabel": {
"type": "string",
"maxLength": 200,
"description": "Rating type only."
},
"maxLabel": {
"type": "string",
"maxLength": 200,
"description": "Rating type only."
},
"minSelections": {
"type": "integer",
"minimum": 0,
"description": "Multiple-choice type only."
},
"maxSelections": {
"type": "integer",
"minimum": 1,
"description": "Multiple-choice type only."
},
"yesLabel": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Yes/no type only."
},
"noLabel": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Yes/no type only."
}
},
"required": [
"type",
"prompt"
],
"additionalProperties": false,
"oneOf": [
{
"properties": {
"type": {
"enum": [
"short_text",
"long_text",
"number",
"date",
"yes_no"
]
}
}
},
{
"properties": {
"type": {
"enum": [
"single_choice",
"multiple_choice",
"dropdown"
]
}
},
"required": [
"options"
]
},
{
"properties": {
"type": {
"const": "rating"
}
},
"required": [
"min",
"max"
]
}
]
}
},
"updateQuestions": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"question"
],
"properties": {
"question": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 20000
},
"required": {
"type": "boolean"
},
"helpText": {
"anyOf": [
{
"type": "string",
"maxLength": 20000
},
{
"type": "null"
}
]
},
"showWhen": {
"anyOf": [
{
"$ref": "#/$defs/showWhen"
},
{
"type": "null"
}
]
}
}
}
},
"replaceQuestions": {
"type": "array",
"maxItems": 100,
"description": "Change a question's type, choices, or validation while preserving its ID.",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"question",
"with"
],
"properties": {
"question": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"with": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"short_text",
"long_text",
"single_choice",
"multiple_choice",
"dropdown",
"rating",
"number",
"date",
"yes_no"
],
"description": "Question type. Use rating for a numbered scale."
},
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 20000
},
"required": {
"type": "boolean",
"default": false
},
"helpText": {
"type": "string",
"maxLength": 20000
},
"showWhen": {
"$ref": "#/$defs/showWhen"
},
"options": {
"type": "array",
"minItems": 2,
"maxItems": 100,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"description": "Required for choice and dropdown types."
},
"minLength": {
"type": "integer",
"minimum": 0,
"description": "Text types only."
},
"maxLength": {
"type": "integer",
"minimum": 1,
"description": "Text types only."
},
"pattern": {
"type": "string",
"maxLength": 500,
"description": "Text types only."
},
"min": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date"
}
],
"description": "Required integer for rating; optional number/date for number and date types."
},
"max": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date"
}
],
"description": "Required integer for rating; optional number/date for number and date types."
},
"step": {
"type": "number",
"exclusiveMinimum": 0,
"default": 1,
"description": "Rating or number types only."
},
"integer": {
"type": "boolean",
"default": false,
"description": "Number type only."
},
"minLabel": {
"type": "string",
"maxLength": 200,
"description": "Rating type only."
},
"maxLabel": {
"type": "string",
"maxLength": 200,
"description": "Rating type only."
},
"minSelections": {
"type": "integer",
"minimum": 0,
"description": "Multiple-choice type only."
},
"maxSelections": {
"type": "integer",
"minimum": 1,
"description": "Multiple-choice type only."
},
"yesLabel": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Yes/no type only."
},
"noLabel": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Yes/no type only."
}
},
"required": [
"type",
"prompt"
],
"additionalProperties": false,
"oneOf": [
{
"properties": {
"type": {
"enum": [
"short_text",
"long_text",
"number",
"date",
"yes_no"
]
}
}
},
{
"properties": {
"type": {
"enum": [
"single_choice",
"multiple_choice",
"dropdown"
]
}
},
"required": [
"options"
]
},
{
"properties": {
"type": {
"const": "rating"
}
},
"required": [
"min",
"max"
]
}
]
}
}
}
},
"moveQuestions": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"question",
"page",
"position"
],
"properties": {
"question": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"page": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"position": {
"type": "integer",
"minimum": 1,
"description": "One-based position; omit to append."
}
}
}
},
"deleteQuestions": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"deletePages": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"surveyId": {
"description": "Defaults to the survey on screen.",
"pattern": "^[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
}
},
"$defs": {
"showWhen": {
"description": "A simple condition, comparison, presence check, or all/any group. References must point to earlier questions.",
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"question",
"equals"
],
"properties": {
"question": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"equals": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"question",
"operator",
"value"
],
"properties": {
"question": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"operator": {
"enum": [
"not_equals",
"contains",
"greater_than",
"less_than"
]
},
"value": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"question",
"operator"
],
"properties": {
"question": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"operator": {
"enum": [
"answered",
"unanswered"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"all"
],
"properties": {
"all": {
"type": "array",
"minItems": 1,
"maxItems": 20,
"items": {
"$ref": "#/$defs/flatCondition"
}
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"any"
],
"properties": {
"any": {
"type": "array",
"minItems": 1,
"maxItems": 20,
"items": {
"$ref": "#/$defs/flatCondition"
}
}
}
}
]
},
"flatCondition": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"question",
"equals"
],
"properties": {
"question": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"equals": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"question",
"operator",
"value"
],
"properties": {
"question": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"operator": {
"enum": [
"not_equals",
"contains",
"greater_than",
"less_than"
]
},
"value": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"question",
"operator"
],
"properties": {
"question": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"operator": {
"enum": [
"answered",
"unanswered"
]
}
}
}
]
}
},
"examples": [
{
"revision": 0,
"addQuestions": [
{
"ref": "ease",
"type": "rating",
"prompt": "How easy was it to use?",
"required": true,
"min": 1,
"max": 5
},
{
"ref": "use_again",
"type": "yes_no",
"prompt": "Would you use it again?",
"required": true
},
{
"type": "long_text",
"prompt": "What could we improve?",
"showWhen": {
"question": "use_again",
"equals": "no"
}
}
]
},
{
"revision": 4,
"updateQuestions": [
{
"question": "QUESTION_ID",
"prompt": "Updated wording",
"required": true
}
],
"moveQuestions": [
{
"question": "QUESTION_ID",
"page": "PAGE_ID",
"position": 1
}
],
"deleteQuestions": [
"UNWANTED_QUESTION_ID"
]
}
]
}
Similar websites
econsor.de
German digital agency building portals, e-commerce sites and online marketing, combining strategy, design and AI to grow clients' visibility and customer base.
inkframe-eta.vercel.app
Browser-native Elah video editor for 9:16 and 16:9 exports
agentdesk-demo.vercel.app
Meridian Ops
eworker.ca
E-Worker is business infrastructure powered by AI, with focused apps and connected business work.