/microsoft-forms-surveys:forms-add-questions <form-id> --type <choice|text|rating|date|likert> --text <question-text> [--required] [--choices <a,b,c>]from microsoft-forms-surveys
Adds questions to an existing Microsoft Form via the Graph API. Supports choice, text, rating, date, and Likert types with ordering and required flags.
Ships in microsoft-forms-surveys. Installing the plugin adds it to Claude Code.
Add one or more questions to an existing form via the Graph beta API.
POST https://graph.microsoft.com/beta/me/forms/{form-id}/questions
Content-Type: application/json
Authorization: Bearer {token}
--type and build the appropriate request body.isRequired to true if --required is specified.orderIndex to control question ordering (0-based, increment for each question).{
"displayName": "What day works best for the team meeting?",
"questionType": "choice",
"isRequired": true,
"orderIndex": 0,
"choiceOptions": {
"choices": [
{ "displayName": "Monday", "value": "monday" },
{ "displayName": "Wednesday", "value": "wednesday" },
{ "displayName": "Friday", "value": "friday" }
],
"allowMultipleAnswers": false,
"hasOtherOption": false
}
}
{
"displayName": "Which topics should we cover? (select all that apply)",
"questionType": "choice",
"isRequired": true,
"orderIndex": 1,
"choiceOptions": {
"choices": [
{ "displayName": "Budget review", "value": "budget" },
{ "displayName": "Hiring plan", "value": "hiring" },
{ "displayName": "Product roadmap", "value": "roadmap" },
{ "displayName": "Team building", "value": "team" }
],
"allowMultipleAnswers": true,
"hasOtherOption": true
}
}
{
"displayName": "What is your name?",
"questionType": "text",
"isRequired": true,
"orderIndex": 2,
"textOptions": {
"isLongAnswer": false,
"maxLength": 100
}
}
{
"displayName": "Any additional comments or suggestions?",
"questionType": "text",
"isRequired": false,
"orderIndex": 3,
"textOptions": {
"isLongAnswer": true,
"maxLength": 4000
}
}
{
"displayName": "How would you rate the onboarding experience?",
"questionType": "rating",
"isRequired": true,
"orderIndex": 4,
"ratingOptions": {
"ratingScale": 5,
"ratingType": "star",
"lowScoreLabel": "Poor",
"highScoreLabel": "Excellent"
}
}
{
"displayName": "On a scale of 1-10, how likely are you to recommend us?",
"questionType": "rating",
"isRequired": true,
"orderIndex": 5,
"ratingOptions": {
"ratingScale": 10,
"ratingType": "number",
"lowScoreLabel": "Not likely",
"highScoreLabel": "Very likely"
}
}
{
"displayName": "What date are you available to start?",
"questionType": "date",
"isRequired": true,
"orderIndex": 6,
"dateOptions": {
"includeTime": false
}
}
{
"displayName": "Please rate your agreement with the following statements:",
"questionType": "likert",
"isRequired": true,
"orderIndex": 7,
"likertOptions": {
"columns": [
{ "displayName": "Strongly Disagree", "value": "1" },
{ "displayName": "Disagree", "value": "2" },
{ "displayName": "Neutral", "value": "3" },
{ "displayName": "Agree", "value": "4" },
{ "displayName": "Strongly Agree", "value": "5" }
],
"rows": [
{ "displayName": "I feel supported by my manager" },
{ "displayName": "I have the tools I need to do my job" },
{ "displayName": "Communication within the team is effective" },
{ "displayName": "I understand the company's goals and priorities" }
]
}
}
--choices as a comma-separated list and map each to a { "displayName": ..., "value": ... } object.orderIndex determines display order in the form. Start at 0 and increment.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
5 commands in this plugin
/forms-setupSet up the Microsoft Forms Surveys plugin — configure Azure auth and verify Graph API access for forms managementnpx claudepluginhub thelobbi/claude-m --plugin microsoft-forms-surveysOther plugins' commands for the same job