harness::ask
Ask the user for a decision between discrete options: 1-4 questions, 2-4 options each; the UI adds a free-text "Other" choice, so do not include one. The questions are shown as a clickable card in the chat and stay open while you do other work. The answer arrives as a user message (one `Header: answer` line per question; a skipped question reads `(skipped)`, and a dismissed card sends a notice instead of answers), so do not repeat the questions in text. Set `about.class` to `security` for credentials or permissions, `publish` for a release or deployment, `external_cost` for paid spend, or `data` for data access, migration, or deletion. It defaults to `scope` for other questions. Not available to sub-agents or structured-output turns.
- aboutall of
What this decision concerns and what it blocks.
all of (1)Variant 1- blocksstring[]
Cards whose work waits on this answer.
- classall of
Classify the decision as `security` for credentials or permissions, `publish` for a release or deployment, `external_cost` for paid spend, or `data` for data access, migration, or deletion. Defaults to `scope` for other questions.
Show 1 nestedHide nested
all of (1)Variant 1valuestringenum security, publish, external_cost, data, scope, run_health, … - ticketstring
The card this question concerns.
- whystring
One paragraph explaining why the answer is needed.
- expires_in_mininteger· uint64min 0
Minutes until the expiry action runs. Omitted asks wait forever.
- on_expiryall of
What to do at expiry. Defaults to leaving the question open and telling the agent that it must not decide for the user.
all of (1)Variant 1any of (2)Variant 1- answerstringrequired
Variant 2valuestringenum block - questionsobject[]required1…4 items
1-4 questions shown together on one card; the answer arrives as the user's next message, one line per question.
- headerstringrequiredmin 1 chars
Short chip label such as `Approach`; prefixes the answer line (`Approach: <label>`). No length limit: the card shows a long one with an ellipsis and the whole text on hover.
- multi_selectboolean
Let the user pick several options (checkboxes) instead of one.
- optionsobject[]required2…4 items
2-4 discrete choices; do not add an "Other" option, the UI adds a free-text one.
- descriptionstring
Optional one-line explanation shown under the label.
- labelstringrequired1…80 chars
The choice as the user sees and sends it, 1-80 characters, unique within its question.
- recommendedboolean
Marks the agent's preferred choice. At most one option per question.
- questionstringrequiredmin 1 chars
The full question text shown above the options.
- aboutobject
- blocksstring[]
Cards whose work waits on this answer.
- classall of
Classify the decision as `security` for credentials or permissions, `publish` for a release or deployment, `external_cost` for paid spend, or `data` for data access, migration, or deletion. Defaults to `scope` for other questions.
all of (1)Variant 1valuestringenum security, publish, external_cost, data, scope, run_health, … - ticketstring
The card this question concerns.
- whystring
One paragraph explaining why the answer is needed.
- expires_in_mininteger· uint64min 0
- on_expiryany ofany of (2)Variant 1
- answerstringrequired
Variant 2valuestringenum block - question_idstringrequired
The function-call id of this ask.
- questionsobject[]required
The questions as shown, in request order.
- headerstringrequiredmin 1 chars
Short chip label such as `Approach`; prefixes the answer line (`Approach: <label>`). No length limit: the card shows a long one with an ellipsis and the whole text on hover.
- multi_selectboolean
Let the user pick several options (checkboxes) instead of one.
- optionsobject[]required2…4 items
2-4 discrete choices; do not add an "Other" option, the UI adds a free-text one.
- descriptionstring
Optional one-line explanation shown under the label.
- labelstringrequired1…80 chars
The choice as the user sees and sends it, 1-80 characters, unique within its question.
- recommendedboolean
Marks the agent's preferred choice. At most one option per question.
- questionstringrequiredmin 1 chars
The full question text shown above the options.
- session_idstringrequired
- statusone ofrequiredone of (1)Variant 1valuestringenum awaiting_answer
- turn_idstringrequired
The turn that asked; the question remains open if the session moves on.