PDF Code Snippet Viewer
Render code snippets with mono font, background boxes, and clickable Git repository links
Create a developer-friendly PDF for code review and sharing.
**Features:**
- Monospace code blocks with background cards
- File and line metadata header per snippet
- Clickable `View on Git` links to repository source
API Documentation
Request Endpoint
POST /en/api/tools/pdf-code-snippet-viewer
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| snippetsJson | textarea | Yes | - |
| repoBaseUrl | text | No | - |
| branch | text | No | - |
| pageSize | select | No | - |
| landscape | checkbox | No | - |
| theme | select | No | - |
Response Format
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}
File:
File
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-pdf-code-snippet-viewer": {
"name": "pdf-code-snippet-viewer",
"description": "Render code snippets with mono font, background boxes, and clickable Git repository links",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-code-snippet-viewer",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
If you encounter any issues, please contact us at [email protected]