# Have a web page read, captured or clicked through

> Ask an Agent to read a web page for you, send a screenshot or a PDF of it, or click through your own site and report what it found.

Source: https://air.build/docs/agents/read-or-capture-a-web-page/

Your Agents have a web browser of their own. An Agent can use it to read a page, take a picture of it, save it as a PDF, or open a site and click, type and scroll through it. Then it tells you in the chat what it found. The app has no button for this: you ask an Agent in a chat.

The browser runs in the cloud, not on your iPhone or Mac. That's true even when your Team runs on a Mac. It's separate from the browser you use, so it has none of your sign-ins or cookies.

The commands an Agent runs, and what each one prints, are on the Reference page [browser](https://air.build/docs/cli/browser/).

## Have a page read

Give the Agent the page's address and say what you want to know:

```text
Read https://example.com/pricing and tell me what each plan includes.
```

The browser shows the page as it looks once it has loaded, so the Agent can read pages built with JavaScript too. Its answer arrives as a message in the chat.

To keep the page's text, ask for it as a file:

```text
Save the text of https://example.com/changelog as a Markdown file and send it to me.
```

Tap a Markdown file in the chat to read it as a formatted document. See [Find the files and documents Agents made](https://air.build/docs/projects/find-files/#documents-an-agent-sends).

## Get a screenshot or a PDF

```text
Take a full-page screenshot of https://example.com and send it here.
```

```text
Save https://example.com/terms as a PDF and send it to me.
```

What you can ask for:

| Ask for | What you get |
| --- | --- |
| A screenshot | A PNG picture of the page as it shows in the browser window. |
| A full-page screenshot | The whole page, top to bottom, in one picture. |
| A screenshot at a phone's size | The page laid out at a phone's screen size, for example an iPhone's. |
| A screenshot of one part | Only one part of the page, such as its header or a form. |
| A PDF | The page as a PDF file. It can also be in landscape, with the page's background printed. |
| A wait before the capture | The Agent waits before taking the picture, so videos and animations can settle. |

When the Agent sends the picture or the PDF, it arrives on its message in the chat. Tap it to open it. See [Send photos, files and sketches to an Agent](https://air.build/docs/projects/send-photos-and-files/#open-files-in-the-chat) and [Save or share photos and videos from a chat](https://air.build/docs/projects/save-photos-and-videos-from-a-chat/).

A file sent in a chat isn't added to the project's **Files**, unless the Agent also saves it in the project. To keep it there, ask for that too.

## Have your own site clicked through

For a sign-up form, a checkout or a menu, the Agent opens a browser session: a live browser that stays on the page between steps. In it, the Agent can open pages, click, type into fields, choose from lists, scroll, go back, and take a screenshot whenever it wants to show you something.

```text
Open https://staging.example.com, sign up with a new test email, and go through onboarding. Send me a screenshot of each screen and tell me where anything breaks.
```

```text
Check https://example.com at an iPhone's size: does the menu open, and do its links work?
```

In a session, the Agent can also:

- put a file into an upload field
- answer a page's alert or confirm dialog
- report a location to the page, or take the browser offline, to see how the page handles it
- save a file that a click downloads

Things to know before you ask:

- The browser really does it: a form it submits is submitted, and a button it presses is pressed. When the steps send, buy or delete something, point the Agent at a test or staging site and use a test account.
- A session doesn't last long: it closes by itself when it's left unused, and after a fixed time in any case. Then its pages, cookies and sign-ins are gone, and the next session starts blank. If a session closes partway, the Agent has to start a new one and go back through the steps.
- Sign-ins aren't kept: if your site needs a login, save a test account in your Team's **Passwords**. Agents can read it each time they need to sign in. See [Save logins for Agents](https://air.build/docs/agents/save-logins-for-agents/).

## Questions

**Is this the same as the Website tab?**

No. The **Website** tab is where you browse your app's website yourself, in the app. See [Publish your app's website](https://air.build/docs/services/publish-a-website/#browse-a-site). The browser on this page is the Agents' own.

**Can an Agent check the app I'm building this way?**

Not with this browser: it opens web pages. Agents check the app itself by running its tests; see [Have your Agents run your app's tests](https://air.build/docs/build/run-your-apps-tests/). To try it yourself, see [Run your app in Preview](https://air.build/docs/build/preview-your-app/).

**Can the browser stay signed in to a site for next time?**

No. Each session starts blank, and when it closes everything in it is gone. Save a test account in **Passwords** so an Agent can sign in again in each session.

**Does it use the sign-ins from my own browser?**

No. The Agents' browser runs in the cloud and has none of your sign-ins, cookies or saved passwords. To sign in to a site, an Agent needs a login you give it, such as a test account saved in your Team's **Passwords**.

**The Agent says the browser can't be reached right now**

The Agents' browser is out of reach for a moment. Ask the Agent again in a little while.
