Copy Page
A copy-to-clipboard button with a dropdown to view the page as Markdown or open it in ChatGPT / Claude.
A compact button group for sharing a documentation or article page with AI assistants. The main button copies the rendered page content to the clipboard; the dropdown links to the Markdown source, ChatGPT, and Claude with a pre-filled prompt that references the page URL.
Pass content (the text to copy) and url (the canonical page URL). Customize the AI prompt with the prompt string, override the Markdown link with markdownUrl, or change the trigger copy with label.
Custom label#
Override the main button label when the surface is not a doc page.
Custom AI prompt#
Pass a prompt string to tailor the ChatGPT / Claude handoff to the page subject.
Custom Markdown URL#
By default the Markdown link is `${url}.md`. Override it with markdownUrl when the raw source lives elsewhere.