Answer a question from a run
opencode_answerSubmit selected labels for each pending question to unblock a run when auto-answering is disabled.
Instructions
Answers the question a run is parked on. Only reachable when autoAnswerQuestions is disabled in the configuration; otherwise questions are rejected automatically so a headless run can never hang. 'answers' holds one array of chosen labels per question, in order.
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": {
"runId": "<runId>",
"answers": "<answers>"
},
"name": "opencode_answer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | The runId of the waiting run. | |
| answers | Yes | One array of selected labels per question, in the order the questions were asked. |