[FEATURE]: Expose Question.ask for API/SDK to use #5640

Open
opened 2026-02-16 17:55:05 -05:00 by yindo · 0 comments
Owner

Originally created by @eXamadeus on GitHub (Jan 14, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

As originally discussed in #6330 there was a desire to build a way for plugins and clients to "ask" questions. The request QuestionTool implemented that functionality in core and exposed most of the endpoints necessary for this system to work.

One significant endpoint that was not exposed was the /question/ask endpoint. The request is simple:

  • Expose the Question.ask functionality via the server

This will allow both SDK users and API developers to use the new ask tool.

Note

This exposes the question.ask functionality for the SDK and API but the plugin is still stuck on v1 of the SDK. I have another PR to upgrade the plugin system to provide a v2 SDK client here: https://github.com/anomalyco/opencode/pull/8380

Originally created by @eXamadeus on GitHub (Jan 14, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request As originally discussed in #6330 there was a desire to build a way for plugins and clients to "ask" questions. The request `QuestionTool` implemented that functionality in core and exposed most of the endpoints necessary for this system to work. One significant endpoint that was not exposed was the `/question/ask` endpoint. The request is simple: - Expose the `Question.ask` functionality via the server This will allow both SDK users and API developers to use the new ask tool. > [!NOTE] > This exposes the `question.ask` functionality for the SDK and API but the plugin is still stuck on v1 of the SDK. I have another PR to upgrade the plugin system to provide a v2 SDK client here: https://github.com/anomalyco/opencode/pull/8380
yindo added the discussion label 2026-02-16 17:55:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5640