Skip to content
Merged
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
60 changes: 52 additions & 8 deletions ai/contextual-menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@

## Menu options

- **Copy page**: Copies the current page as Markdown for pasting as context into AI tools.
- **View as Markdown**: Opens the current page as Markdown.
- **Open in ChatGPT**: Creates a ChatGPT conversation with the current page as context.
- **Open in Claude**: Creates a Claude conversation with the current page as context.
- **Open in Perplexity**: Creates a Perplexity conversation with the current page as context.
- **[Your custom options](#adding-custom-options)**: Add your own options to the menu.
The contextual menu includes several pre-built options that you can enable by adding their identifier to your configuration.

| Option | Identifier | Description |
|:--------|:------------|:-------------|
| **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 |
| **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 |
| **Copy MCP Server URL** | `mcp` | Copies the MCP server URL to the clipboard |
| **Open in Cursor** | `cursor` | Installs the hosted MCP server in Cursor |
| **Open in VSCode** | `vscode` | Installs the hosted MCP server in VSCode |

<Frame>
<img
Expand All @@ -34,9 +40,12 @@
"options": [
"copy",
"view",
"chatgpt",

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

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

ai/contextual-menu.mdx#L43

Did you really mean 'chatgpt'?
"claude",

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

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

ai/contextual-menu.mdx#L44

Did you really mean 'claude'?
"perplexity"
"perplexity",
"mcp",

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

Did you really mean 'mcp'?
"cursor",
"vscode"
]
}
}
Expand Down Expand Up @@ -75,7 +84,10 @@
</ResponseField>

<ResponseField name="value" type="string" required>
The query parameter value. Use `$page` to insert the current page content in Markdown or `$path` to insert the current page path.
The query parameter value. We will replace the following placeholders with the corresponding values:
- Use `$page` to insert the current page content in Markdown.
- Use `$path` to insert the current page path.
- Use `$mcp` to insert the hosted MCP server URL.
</ResponseField>
</Expandable>
</ResponseField>
Expand Down Expand Up @@ -103,3 +115,35 @@
}
}
```

### Custom option examples

<AccordionGroup>
<Accordion title="Simple link">
```json
{
"title": "Request a feature",
"description": "Join the discussion on GitHub",
"icon": "plus",
"href": "https://github.com/orgs/mintlify/discussions/categories/feature-requests"
}
```
</Accordion>

<Accordion title="Dynamic link with page content">
```json
{
"title": "Share on X",
"description": "Share this page on X",
"icon": "x",
"href": {
"base": "https://x.com/intent/tweet",
"query": {
"key": "text",
"value": "Check out this documentation: $page"
}
}
}
```
</Accordion>
</AccordionGroup>