userInput/answer
Answers every question of an open user-input prompt.
Parameters
Section titled “Parameters”Type: UserInputAnswerParams
userInput/answer params: answer every question.
Each answer carries questionId then exactly one of selectedLabel
(single mode), selectedLabels (multiple mode, within min/max bounds), or
freeText (<=500 chars); plus an optional note (<=500). Answers that do
not match the prompt fail -32057 userInputAnswerInvalid. Image
attachments are a reserved field in v1, rejected if sent, because
the blob-upload path they reference is reserved.
| Field | Type | Stability | Presence | Description |
|---|---|---|---|---|
answers |
UserInputAnswer[] | required | One entry per question. | |
commandId |
string |
required | The idempotency handle (UUIDv7). | |
sessionId |
string |
required | The target session. | |
userInputId |
string |
required | The prompt being answered. |
Source
schema/msp/experimental/msp.schema.json#/methods/userInput~2Fanswer
{ "description": "Answers every question of an open user-input prompt.", "params": { "$ref": "#/$defs/UserInputAnswerParams" }, "result": { "$ref": "#/$defs/UserInputAnswerResult" }}