Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions ai/contextual-menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
| **Copy page** | `copy` | Copies the current page as Markdown for pasting as context into AI tools |
| **View as Markdown** | `view` | Opens the current page as Markdown |
| **Ask assistant** | `assistant` | Opens the [assistant](/ai/assistant) with the current page as context |
| **Open in ChatGPT** | `chatgpt` | Creates a ChatGPT conversation with the current page as context |
| **Open in Claude** | `claude` | Creates a Claude conversation with the current page as context |
| **Open in Perplexity** | `perplexity` | Creates a Perplexity conversation with the current page as context |
| **Open in Grok** | `grok` | Creates a Grok conversation with the current page as context |
| **Open in Google AI Studio** | `aistudio` | Creates a Google AI Studio conversation with the current page as context |
| **Open in Devin** | `devin` | Creates a Devin session with the current page as context |
| **Open in Windsurf** | `windsurf` | Opens Windsurf Cascade with the current page as context |
| **Open in ChatGPT** | `chatgpt` | Creates a ChatGPT conversation with the current page URL as context |
| **Open in Claude** | `claude` | Creates a Claude conversation with the current page as Markdown context |
| **Open in Perplexity** | `perplexity` | Creates a Perplexity conversation with the current page as Markdown context |
| **Open in Grok** | `grok` | Creates a Grok conversation with the current page as Markdown context |
| **Open in Google AI Studio** | `aistudio` | Creates a Google AI Studio conversation with the current page as Markdown context |
| **Open in Devin** | `devin` | Creates a Devin session with the current page as Markdown context |
| **Open in Windsurf** | `windsurf` | Opens Windsurf Cascade with the current page as Markdown context |
| **Copy MCP server URL** | `mcp` | Copies your MCP server URL to the clipboard |
| **Copy MCP install command** | `add-mcp` | Copies the `npx add-mcp` command to install the MCP server |
| **Connect to Cursor** | `cursor` | Installs your hosted MCP server in Cursor |
Expand All @@ -38,6 +38,13 @@
/>
</Frame>

## How AI providers receive page content

When a user clicks an AI provider option, Mintlify sends the current page as a prompt to the provider. The format of the prompt depends on the provider's content reading capabilities:

- **ChatGPT** receives the plain page URL (e.g., `https://docs.example.com/page`). ChatGPT uses web search to read the page content.

Check warning on line 45 in ai/contextual-menu.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

ai/contextual-menu.mdx#L45

Use 'for example' instead of 'e.g.'.
- **Claude, Perplexity, Grok, Google AI Studio, Devin, and Windsurf** receive the [Markdown version](/ai/llmstxt) of the page (e.g., `https://docs.example.com/page.md`). This provides the AI with clean, structured Markdown content optimized for comprehension.

Check warning on line 46 in ai/contextual-menu.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

ai/contextual-menu.mdx#L46

Use 'for example' instead of 'e.g.'.

## Enabling the contextual menu

Add the `contextual` field to your `docs.json` file and specify which options you want to include.
Expand Down
Loading