opencode_answer
Answer pending OpenCode questions to resume the same coding turn, blocking until completion or needing input. Reject invalid options and resume without resubmitting prompts.
Instructions
Answer a pending OpenCode question (state=needs_agent_input, kind=question) and keep blocking until the turn completes, errors, or needs input again.
answers: ONE entry per sub-question, in order. Each entry is a string or a list of strings. When a sub-question offers options and does not allow custom answers, each value MUST be an exact option label (the server rejects anything else — this tool validates before posting).The answer is posted to OpenCode and the SAME turn resumes (the prompt is never resubmitted).
If the question is no longer pending (already answered/consumed), an error is returned; the turn may have moved on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answers | Yes | ||
| timeout | No | ||
| directory | Yes | ||
| session_id | Yes | ||
| question_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||