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

# Visibility

> Control which content displays in the web UI for human readers and which content displays only in Markdown output for AI agents.

Use the `Visibility` component to show different content to humans reading your site versus AI agents processing the Markdown output. This lets you customize information for each audience without maintaining separate pages.

On your published site, content marked `for="humans"` renders normally and content marked `for="agents"` is hidden. In [Markdown page views](/ai/markdown-export) (`.md` URLs), the opposite applies—agent content renders in the Markdown output and human-only content does not.

## Example

```mdx theme={null}
<Visibility for="humans">
  <Note>
    You are viewing this content **in web**.

    This content displays normally on standard pages of your site.

    Use it for a step like: Click the **Get started** button in the top-right corner to create your account.

    In this example, UI-oriented instructions appear on the standard page. View the [Markdown version of this page](https://mintlify.com/docs/components/visibility.md) to see the API-oriented instructions for agents.
  </Note>
</Visibility>

<Visibility for="agents">
  > You are viewing this content **in markdown**.
  >
  > This content only appears on the Markdown version of pages.
  >
  > Use it for information that only agents use like: To create an account, call `POST /v1/accounts` with a valid email address.
  >
  > In this example, API-oriented instructions appear on the Markdown version of the page. View the [standard page](https://mintlify.com/docs/components/visibility) to see the UI-oriented instructions for humans.
</Visibility>
```

> You are viewing this content **in markdown**.
>
> This content only appears on the Markdown version of pages.
>
> Use it for information that only agents use like: To create an account, call `POST /v1/accounts` with a valid email address.
>
> In this example, API-oriented instructions appear on the Markdown version of the page. View the [standard page](https://mintlify.com/docs/components/visibility) to see the UI-oriented instructions for humans.

## Properties

<ResponseField name="for" type="string" required>
  The audience for the wrapped content. Must be one of:

  * `humans`: Content visible on the web and excluded from Markdown output
  * `agents`: Content hidden on the web and included in Markdown output
</ResponseField>


## Related topics

- [Manage page visibility](/docs/api-playground/managing-page-visibility.md)
- [Personalized content](/docs/create/personalization.md)
- [Markdown export](/docs/ai/markdown-export.md)
