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

# In-chat cards

> The cards Claude and ChatGPT draw from IntroLink's answers (MCP Apps).

Claude and ChatGPT can draw a card inside the chat from a tool's answer, using
the [MCP Apps](https://github.com/modelcontextprotocol/ext-apps) extension
(`io.modelcontextprotocol/ui`). IntroLink has five:

| Card | Resource | Tools |
| - | - | - |
| Ranked paths | `ui://introlink/paths.html` | `search_people`, `company_people`, `company_paths`, `customer_intro_suggestions` |
| A person and who knows them | `ui://introlink/person.html` | `find_paths`, `get_person` |
| A drafted ask | `ui://introlink/draft.html` | `draft_ask` |
| Setup | `ui://introlink/setup.html` | `setup_status` |
| Who is around a person, drawn | `ui://introlink/graph.html` | `people_around` |

Each tool's **Card** row on the [tools page](https://docs.introlink.ai/mcp/tools.md) says the same, from
the code. A card is extra. Some clients draw none, and Claude asks before it
shows one, so every answer's text stands on its own and the card draws the
same `structuredContent`, never more.

## What a card can do

* Open a link into IntroLink (the person page, the composer, Settings), through
  the host, which may ask you first.
* Send your next message, when you press a button: **Who knows them** on the
  paths card, **This one** when a name matched more than one person, **Who is
  around them** on the graph card, and **Draft ask** when `draft_ask` is on
  (when it's off, **Draft ask** opens the composer in IntroLink instead).
* On the draft card, **Create Gmail draft** calls `draft_ask` again with
  `create: true`. It saves a draft; nothing is sent.
* Nothing else. A card loads nothing from the network: one HTML document with
  its own styles and script, so it declares no content-security domains. It
  follows the host's light or dark theme. Everything it shows is set as text,
  never as HTML.

## For developers

A tool links its card in `_meta`:

```json theme={null}
{
  "_meta": {
    "ui": { "resourceUri": "ui://introlink/person.html", "visibility": ["model", "app"] },
    "ui/resourceUri": "ui://introlink/person.html"
  }
}
```

The resource is served by `resources/read` with the MIME type
`text/html;profile=mcp-app` and `_meta.ui.prefersBorder: true`. The card
speaks the extension's postMessage JSON-RPC itself, with no SDK
(`app/src/lib/mcp/ui/bridge.ts`):

| Direction | Messages |
| - | - |
| Card to host | `ui/initialize`, then `ui/notifications/initialized`; `ui/notifications/size-changed`; `ui/open-link`; `ui/message`; `tools/call` (Create Gmail draft only) |
| Host to card | `ui/notifications/tool-result`; `ui/notifications/host-context-changed` (the theme); `ping` and `ui/resource-teardown`, answered with `{}` |

The renderers are `app/src/lib/mcp/ui/cards.ts`. The paths, person, draft and
setup designs are artboards 24a to 24d in the product mock; the graph card is
P21c's.


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