The goal of Magzdown Agent Tools is to solve the problem that when AI agents output reports, they can only pile Markdown directly into the chat window. It lets agents generate a link that, when clicked by the user, shows a typeset, paginated document instead of raw Markdown text.
Main capabilities
- Convert Markdown into a shareable link that opens as a typeset document.
- Supports tables, Mermaid diagrams, mathematical formulas, and pagination.
- Content is stored in the URL, with no upload and no account required.
How to use This repository provides three ways to teach agents this capability:
- Claude Code skill: Can be used per project by copying the skill into the repository's .claude/skills/magzdown/ directory, then asking Claude to execute "open this in magzdown" or "make this report readable".
- Cursor rule: The rule is set to alwaysApply: false, and Cursor will automatically enable it based on the description when you ask to share or display a document.
- MCP server: For configuration in Cursor and Claude Desktop, see mcp/README.md. The tool call form is open_in_magzdown({ markdown, title? }), which returns a link. Setting MAGZDOWN_AUTO_OPEN=1 also opens it in the browser.
How the URL works The Markdown content itself is the URL. The specific process is: prepend two bytes (0x01 0x00) to the UTF-8 text, base64-encode the payload, then convert it to a URL-safe format (+ replaced with -, / replaced with _, padding removed), and finally place it after https://www.magzdown.com/open?md= . The reader decodes it in the browser, does not upload anything, and does not require an account. Documents are recommended to stay below about 100 KB, otherwise the URL may be truncated. The full specification and test vectors are in shared/encode.md and https://www.magzdown.com/docs。
Use cases
- After an AI agent generates a report, it needs to be shared with humans in a more readable typeset document form.
- In environments such as Claude Code, Cursor, or Claude Desktop, you want the agent to output a document link that can be opened directly.
Limitations
- Document size is recommended to be kept within about 100 KB, otherwise the URL may be truncated.
- Content is stored in the URL, so it is not suitable for very long documents.
- This repository is licensed under MIT and is not affiliated with Anthropic, OpenAI, or Cursor.
- For pricing information, see https://www.magzdown.com/pricing,具体收费细节暂未提供。