Agent Context
Copy Page
Copy any docs page as Markdown, text, JSON, agent prompt, command, or URL.
Status: Available.
Every docs page exposes a Copy Page control. The default button copies Markdown. The dropdown exposes other formats for different workflows.
Formats
| Format | Copies | Use |
|---|---|---|
.md | Markdown page context | Drop into a prompt, issue, or local doc. |
.txt | Plain text | Use with tools that do not handle Markdown well. |
.json | Structured context payload | Preserve title, URL, path, slug, TOC, content, and CLI metadata. |
Agent prompt | Prompt-wrapped docs context | Give an agent strong source-grounded instructions. |
Command | npx agentmag add docs <slug> | Install context locally. |
URL | Canonical docs URL | Share the page. |