Asking a person
An outside agent that reaches something only a person can settle, such as a sign-in, a CAPTCHA or a judgement call, calls human.ask. The question appears as a form in the sidebar’s Messaging tab for whoever is viewing the session, and the call returns when they answer. human.ask needs no model.
Asking
Section titled “Asking”A plain question takes a free-text answer. fields asks for typed answers instead; each field has an id, a type (string, integer, number or boolean), and optionally required, enum, minimum, maximum and label. A boolean field named done suits “tell me when you have signed in”. help adds context under the question.
{ "question": "Sign in to the file portal in the open window, then choose Done.", "fields": [{"id": "done", "type": "boolean", "required": true, "label": "Done"}], "help": "The agent continues once you answer."}The answer comes back in values, keyed by field id, with state: "closed" and closed_by: "reply".
Waiting
Section titled “Waiting”One call waits up to timeout_s (default 25 seconds), which fits under the limits of a proxy or an MCP client’s own tool timeout. If state is still open when it returns, call again with the request_id, or with no arguments while exactly one request is open. The question is not asked twice.
A request can also close with closed_by set to:
| Value | Meaning |
|---|---|
declined |
The person chose Not done or Stop. The result carries next, telling the agent to stop the task |
cancelled |
The request was cancelled |
timeout |
The request ran out of its time |
run_ended |
The run ended |
In a Kasm session a request has no deadline of its own and the result omits remaining_s: the question waits until someone answers or cancels it. Outside a Kasm session, a human-wait allowance bounds the request.
Who answers
Section titled “Who answers”Anyone signed in to view the session can answer. The person answers in Messaging, where the request appears as a form, with Not done and Stop among the choices for a request that asks them to do something first. The sidebar shows the tabs.
The call fails with a resolution error when the run has no inbox. Set KASM_RUNTIME_INBOX_TOKEN or the session token so a person can answer through the sidebar. A Kasm session with the sidebar has one.