Skip to main content
The contextual menu provides quick access to AI-optimized content and direct integrations with popular AI tools. When users click the contextual menu on any page, they can copy content as context for AI tools or open it in an AI conversation. Supported tools include ChatGPT, Claude, Perplexity, Google AI Studio, Grok, Devin, Devin Desktop, and any custom tool you configure.
Pair the contextual menu with your hosted skill.md file and MCP server so that users can install your product’s full capabilities into their AI tools, not just the page they are reading.
The contextual menu includes several pre-built options that you can enable by adding their identifier to your configuration.
The expanded contextual menu showing the Copy page, View as Markdown, Open in ChatGPT, and Open in Claude menu items.

Enable the contextual menu

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

Display location

By default, the contextual menu appears in the page header. You can configure it to display in the table of contents sidebar instead using the display option.

Add custom options

Create custom options in the contextual menu by adding an object to the options array. Each custom option requires these properties:
title
string
required
The title of the option.
description
string
required
The description of the option. Displayed beneath the title when the contextual menu expands.
icon
string
required
The icon to display.Options:
  • Font Awesome icon name, if you have the icons.library property set to fontawesome in your docs.json
  • Lucide icon name, if you have the icons.library property set to lucide in your docs.json
  • Tabler icon name, if you have the icons.library property set to tabler in your docs.json
  • URL to an externally hosted icon
  • Path to an icon file in your project
iconType
string
The Font Awesome icon style. Only used with Font Awesome icons.Options: regular, solid, light, thin, sharp-solid, duotone, brands.
href
string | object
required
The href of the option. Use a string for simple links or an object for dynamic links with query parameters.
Example custom option:

Custom option examples