ask
Query the Jev decision model about the active browser tab to get calibrated yes/no or multiple-choice probabilities for script branching and result checks without a large model.
Instructions
Ask the Jev decision model a question about the session's active tab and get a calibrated answer in one cheap call (~150 to 500 ms, a fraction of a cent), judged on the page's URL, title and visible text (an open dialog's first; up to 20,000 characters). Without options it is a yes/no question, e.g. "Is an error message showing?" or "Is the user signed in?", answered with the probability of yes. With options it picks the one that fits, e.g. question "Which page is this?" with ["product page", "cart", "checkout", "error page"], with each option's probability. Useful for branching a script without a large model, and for checking a result after act. Jev reads and judges; it is weak at counting, arithmetic and dates, so ask those of evaluate or take_snapshot instead. Needs TYPESAFE_API_KEY; any Jev problem is an error, never a default answer. It reads the page without changing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Answers to choose between (2 to 255). Leave out for a yes/no question. | |
| question | Yes | The question, about the page as it is now. Phrase a yes/no question as a statement or a question with a clear yes, e.g. "The order was placed successfully." | |
| sessionId | Yes | The id returned by open_browser_session. Errors if no open session has it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | "yes" or "no" for a yes/no question, else the option that fits. | |
| probability | Yes | For a yes/no question, the probability of yes; with options, Jev's confidence in `answer`. | |
| probabilities | No | With options: each option's probability, most likely first. |