# Restpack MCP

> Restpack: Convert live websites and raw HTML into professional PDFs or high-fidelity screenshots instantly from your agent. Capture full pages, specific elements, or create browser mockups—all without leaving your chat interface.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Tags:** html-to-pdf, screenshots, browser-automation, pdf-generation, web-capture

## Description

Need to document a website or capture a precise look at a UI element? Restpack handles the heavy lifting of web-to-document conversion. It lets you give your AI client a URL and get back structured assets like PDFs, or ask it to grab screenshots in PNG or JPG format. You can even control details like margins, page orientation, and add metadata for professional publishing. Because this MCP is hosted on Vinkius, connecting Restpack means you access powerful web capture tools alongside hundreds of others in one spot, making your agent a true digital workhorse. You'll never have to copy-paste a whole webpage into Word just to save it as a PDF again.

## Tools

### capture_screenshot
Captures a high-fidelity image of any specified web page URL.

### convert_html_to_pdf
Converts either a live webpage or raw HTML code into a structured PDF file.

### create_browser_mockup
Generates realistic browser mockups from uploaded images.

### get_usage
Retrieves your current API usage statistics for billing and tracking purposes.

## Prompt Examples

**Prompt:** 
```
Convert https://restpack.io to an A4 PDF in landscape orientation.
```

**Response:** 
```
I've generated the PDF for you. You can download it here: [Restpack_Capture.pdf](https://restpack.io/cdn/sample.pdf)
```

**Prompt:** 
```
Take a full-page PNG screenshot of https://news.ycombinator.com.
```

**Response:** 
```
Full-page screenshot captured successfully. View the image here: [Screenshot.png](https://restpack.io/cdn/sample.png)
```

**Prompt:** 
```
Convert this HTML to PDF: '<h1>Report</h1><p>Generated by AI</p>'
```

**Response:** 
```
The HTML content has been converted to a PDF document. Access it here: [Document.pdf](https://restpack.io/cdn/sample.pdf)
```

## Capabilities

### Capture Full Screenshots
Grab high-quality images of entire web pages or specific sections using the `capture_screenshot` tool.

### Generate PDFs from Web Content
Convert live URLs or raw HTML strings into professional, structured PDF documents with the `convert_html_to_pdf` tool.

### Create UI Mockups
Turn existing images into polished browser mockups using the `create_browser_mockup` tool.

### Check API Usage Limits
Monitor how many times you've used the service via the `get_usage` tool.

## Use Cases

### Documenting a new client feature
A product manager needs to document a complex onboarding flow. Instead of manually clicking through every screen and taking hundreds of screenshots, they simply tell their agent: 'Capture the full sequence from this URL.' The `capture_screenshot` tool returns all necessary images, ready for inclusion in the final guide.

### Archiving a research article
A researcher finds a critical but temporary web page. They use their agent to run the `convert_html_to_pdf` tool on the URL immediately. This captures the entire content—including formatting and images—into an official PDF that won't degrade or require constant internet access.

### Creating a marketing campaign preview
A designer has a key visual asset but needs to show it in different devices (desktop, mobile). They use the `create_browser_mockup` tool, passing their image and requesting three specific device formats. The agent returns all three polished mockups immediately.

### Generating technical documentation
A developer needs to share a complex API endpoint guide. They use the `convert_html_to_pdf` tool, passing raw HTML containing the code and text. This generates a professional PDF that looks exactly like a published manual, complete with specified metadata.

## Benefits

- Stop losing fidelity when saving webpages. Use `convert_html_to_pdf` to generate PDFs with full CSS support, retaining complex layouts and images exactly as they appear online.
- Testing UIs used to mean dozens of manual screenshots. Now, the `capture_screenshot` tool lets your agent capture full-page or element-specific PNG/JPG files instantly for reliable bug reporting.
- Marketing materials need consistency. Use `create_browser_mockup` to quickly adapt a single design into polished mockups that look like they belong in a real app, saving hours of manual Photoshop work.
- Need to archive research? Convert entire live URLs into PDFs with Restpack, complete with options for custom page sizes and metadata, making them perfect for offline reference.
- The `get_usage` tool gives you visibility. You can track your API calls right from the chat, which is crucial when automating processes across different tools in your Vinkius setup.

## How It Works

The bottom line is: you talk to your agent like normal and get back ready-to-use web assets instantly.

1. Subscribe to this MCP and enter your Restpack API Token in your preferred AI client.
2. Tell your agent what you need, whether it's converting a link or capturing an image.
3. Receive the finished document or screenshot via a downloadable CDN URL.

## Frequently Asked Questions

**How do I use Restpack to get a full PDF of a URL?**
Use `convert_html_to_pdf` and simply provide the live URL. You can also specify parameters like A4 size or landscape orientation in your prompt.

**Can Restpack capture screenshots from raw HTML code?**
The primary function of `capture_screenshot` is to take images from live URLs. For capturing structured content directly from code, use the `convert_html_to_pdf` tool.

**Does Restpack support different image formats for screenshots?**
Yes, when running `capture_screenshot`, you can request output in PNG or JPG format. You can also capture them as part of a PDF document.

**What is the difference between `convert_html_to_pdf` and `create_browser_mockup`?**
`convert_html_to_pdf` turns web content into documents. `create_browser_mockup` takes an existing image and makes it look like it's displayed on a specific device (like a phone or tablet).

**Can I track my usage with Restpack?**
Yes, the `get_usage` tool allows you to pull your current API usage statistics directly within your conversation.