> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hotkey.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Asks and hand links

> How an agent brings you in for a step only a person can do.

Some steps need a person: a password the browser hasn't saved, a 2FA code, a captcha, a consent screen, a check before the agent sends or pays. For those the agent asks you with `request_human`, you do the step in the same tab, and the agent carries on with the session already there.

## How an ask works

1. The agent calls `request_human` with a one-sentence `reason`, such as "Enter the 2FA code for CRM Hub". It can name a `url` to open, or a `tabId`.
2. Your phone gets a push (if you turned on [phone alerts](#push-alerts)), and the ask waits in **Needs you** in the console.
3. You open it, do the step in the real page and tap **Done**. If you can't, tap **Can't do it** and add a note for the agent.
4. The agent hears the answer and continues in the same tab.

An ask names the agent that made it ("Claude Code needs you"), and the pages say whether the agent is still listening. When it is, **Done** shows "Claude Code carries on." When the agent asked from a chat and ended its turn, it shows "Now tell Claude in your chat that you're done."

![An ask in the console's Needs you: the live page in the middle, the ask with Done and Can't do it on the right.](https://mintcdn.com/hot-key/sZaNcHFHkClnSzgJ/images/ask-console-light.png?fit=max\&auto=format\&n=sZaNcHFHkClnSzgJ\&q=85\&s=d6e59a1bbf6540b51dfe1a236b35e704)

An ask in the console's Needs you: the live page in the middle, the ask with Done and Can't do it on the right.

## Waiting for the answer

How the agent waits depends on where it runs.

* **In a chat with you** (claude.ai, the Claude apps, ChatGPT): the agent passes `wait_seconds: 0`, gives you the ask's link and ends its turn. When you say you're done, it calls `wait_for_human` with the ask's `id`.
* **On its own** (Claude Code on a task, a script): `request_human` waits up to `wait_seconds`, 40 seconds at most. If you aren't done by then, the result says `pending` and the agent calls `wait_for_human` again. No call waits longer than 40 seconds, because MCP clients give up on longer calls.

`wait_for_human` returns the ask's status: `done`, `pending`, `cancelled` (with your note when you tapped Can't do it), `expired` or `tab-closed`. An agent that gives up calls `cancel_request`, which takes the ask off your phone and the console.

An ask stays open in your Needs you for up to 24 hours, until you answer it or the agent cancels it (`timeout_minutes` can make it shorter). Its link works for 30 minutes of that. Finished asks stay known to `wait_for_human` for seven days (the newest 200 of a browser), also across a restart of the browser.

Ask ids look like `ask_<browser id>_<12 hex>`. The id names its browser, so `wait_for_human` and `cancel_request` need no `tabId`.

## Hand links

Every ask has a `link` in its result. The link opens the ask's one tab with **Done**, and needs no sign-in, so the agent can hand it to you in a chat, or you can copy it from the console to hand the step to someone else.

A link ends when you tap Done, when the ask ends, or after 30 minutes. It is meant for one person: anyone with the link can use that tab until it ends, so don't post it anywhere.

A link that ended is not a dead end. Opening it says the link has ended and takes you to the ask in the console, through sign-in, while the ask is still open. When the ask is over, the page says how it ended, with a way to it in the console. The old link opens nothing by itself.

**Copy link** on an open ask in the console makes a new link with its own 30 minutes and ends the one before, so an ask has one working link at most.

![The same ask opened from its hand link on a phone. Done and Can't do it sit in the amber header.](https://mintcdn.com/hot-key/sZaNcHFHkClnSzgJ/images/ask-link-phone-light.png?fit=max\&auto=format\&n=sZaNcHFHkClnSzgJ\&q=85\&s=24b451ffb5c633bc0ed4a2342f2a0f3b)

The same ask opened from its hand link on a phone. Done and Can't do it sit in the amber header.

### What a link's guest can do

The person with the link can use the one tab: click, type, scroll, find in the page, hear the tab's sound, and give the page a file from their own device. They tap **Done**, or **Can't do it** with a note.

They can't type an address, open other tabs, go back, pause the agent, or reach the browser's saved passwords and passkeys.

### The site lock

While a link is open, its tab stays on the ask's site, whoever starts the navigation: the agent, the page or the guest. A load to another site is refused.

Sign-ins often pass through other sites. The lock lets a sign-in leave the site by a redirect, a form post, or a load that names one of the link's sites as where to come back to. While the tab is on another site, the link covers it. A sign-in page there that names the way back to the ask's site shows after a moment, so the guest can use it. A tab that stays covered for 10 seconds stops showing.

When a step must use other sites, such as a company's single sign-on page or a bank's check, the agent names up to three in `sites`, like `sso.acme.com`.

When the page goes somewhere the link can't follow (a site not in the list, or a new window such as "Sign in with Google"), the link tells the person to sign in to the console and finish in Needs you, where the same ask waits, on the new window if one opened.

## Push alerts

Asks arrive as ordinary notifications on every device where you pressed **Turn on alerts** (Settings, **Phone alerts**). On an iPhone or iPad the console must be on the Home Screen first. A notification carries your browser's name, the agent's name and its reason. Tapping it opens the ask.

A device that turns alerts on gets an "Alerts are on" notification at once, so you know it works. Without alerts, asks still wait in Needs you, and agents in a chat give you the link.

## Asking before risky steps

The agent can do anything you could do in that browser, including send, buy and delete. Hotkey doesn't hold those steps back. If something needs your OK first, tell your agent: it asks you in your chat, or with `request_human` when you aren't in one.

## From a script

A script can make and watch asks over HTTP. See [Asks](https://docs.hotkey.so/api.md#asks) in the HTTP API.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.