read
general

Ask the user a question and present a small set of options as clickable buttons — a multiple-choice menu. Use this whene

Changed on

Ask the user a question and present a small set of options as clickable buttons — a multiple-choice menu. Use this whenever a decision is genuinely the user's to make and the answer is one of a few clear choices (confirming an approach, mapping values, yes/no with context, picking between options). Prefer it over a free-text question when you can enumerate the choices. Give 2–6 concise options, each a short label with an optional one-line description. Set multi_select=true when the user may pick several. The user's selection arrives as their next message — after calling this, STOP and wait for it; do not assume an answer.

post/api/v1/tools/ask_user_question

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesread

Request body

object required
question, string required

The question to ask.

options, object[] required

The choices to offer.

multi_select, boolean

Allow selecting more than one option. Default false.

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision