Skip to main content
OwnDocs

AI Deeplinks

1 min readStableIntermediate

The dropdown next to the Copy page button includes an "Ask an AI" section with one-click deeplinks for ChatGPT, Claude, and Cursor. Each opens the tool with a pre-filled prompt asking it to read and explain the current page.

Quick Start

Open the dropdown with the chevron on the right side of the Copy page button. The menu lists Copy as Markdown, Copy as Plain Text, and then the Ask an AI section.

Adding Options

The Ask an AI section offers three entries:

  • Ask ChatGPT opens https://chatgpt.com/?q=<prompt> in a new tab.
  • Ask Claude opens https://claude.ai/new?q=<prompt> in a new tab.
  • Open in Cursor opens cursor://anysphere.cursor-deeplink/prompt?text=<prompt> in the same tab.

Advanced

Every entry sends the same prompt, built from the current page URL:

Read and explain this documentation page: {page-url}

The targets are defined in AI_TARGETS and the prompt template in AI_PROMPT_TEMPLATE, both in components/CopyPageMarkdown.tsx.

Options

Ask ChatGPTbutton

Opens https://chatgpt.com/?q=<prompt> in a new tab.

Ask Claudebutton

Opens https://claude.ai/new?q=<prompt> in a new tab.

Open in Cursorbutton

Opens cursor://anysphere.cursor-deeplink/prompt?text=<prompt> in the same tab.

Was this page helpful?