|
| 1 | +--- |
| 2 | +title: CaptureKit |
| 3 | +description: Capture screenshots and extract content from web pages |
| 4 | +integration: |
| 5 | + type: "capturekit" |
| 6 | + color: "#FFFFFF" |
| 7 | +--- |
| 8 | + |
| 9 | +import { ReferenceDetails } from "@/components/ui/reference-details" |
| 10 | + |
| 11 | + |
| 12 | +{/* MANUAL-CONTENT-START:intro */} |
| 13 | +[CaptureKit](https://www.capturekit.dev/) is a screenshot and web content API that runs the browsers for you. |
| 14 | + |
| 15 | +With the CaptureKit block, you can: |
| 16 | + |
| 17 | +- **Take screenshots**: capture a page as a PNG, JPEG, WebP image or a PDF, full page or by CSS selector, on 17+ emulated devices, without cookie banners and ads |
| 18 | +- **Extract content**: get a page's title, metadata, internal, external and social links, and its Markdown |
| 19 | +- **Fetch HTML**: get a page's raw HTML without a browser |
| 20 | +- **Analyze websites**: get an AI summary of what a site offers, its audience, features and contact details |
| 21 | + |
| 22 | +Create an API key in the [CaptureKit dashboard](https://app.capturekit.dev/) and paste it into the block. |
| 23 | + |
| 24 | +In Sim, the CaptureKit block lets your agents archive pages for compliance, track competitor pages and turn websites into clean input for research. |
| 25 | +{/* MANUAL-CONTENT-END */} |
| 26 | + |
| 27 | +## Use the block [#usage-instructions] |
| 28 | + |
| 29 | +Capture any web page as a PNG, JPEG, WebP image or a PDF, by viewport, full page or CSS selector on 17+ emulated devices; extract a page's metadata, links and Markdown; fetch raw HTML; and get an AI summary of what a website offers. |
| 30 | + |
| 31 | +## Actions |
| 32 | + |
| 33 | +### CaptureKit Take Screenshot |
| 34 | + |
| 35 | +Capture a public web page as a PNG, JPEG, WebP image or a PDF, by viewport, full page or CSS selector, and store it as a file. |
| 36 | + |
| 37 | +<ReferenceDetails> |
| 38 | + |
| 39 | +#### Input |
| 40 | + |
| 41 | +| Parameter | Type | Required | Description | |
| 42 | +| --------- | ---- | -------- | ----------- | |
| 43 | +| `url` | string | Yes | URL of the page \(e.g., "https://example.com") | |
| 44 | +| `format` | string | No | Output format: png, jpeg, webp or pdf \(defaults to "png"\) | |
| 45 | +| `fullPage` | boolean | No | Capture the entire page instead of the visible viewport | |
| 46 | +| `device` | string | No | Device to emulate \(e.g., "iphone_14_pro"\) | |
| 47 | +| `selector` | string | No | CSS selector of one element to capture \(e.g., "#pricing"\) | |
| 48 | +| `viewportWidth` | number | No | Width of the browser viewport in pixels \(defaults to 1280\) | |
| 49 | +| `viewportHeight` | number | No | Height of the browser viewport in pixels \(defaults to 1024\) | |
| 50 | +| `delay` | number | No | Seconds to wait before capturing \(defaults to 0\) | |
| 51 | +| `removeCookieBanners` | boolean | No | Remove cookie banners before capturing | |
| 52 | +| `removeAds` | boolean | No | Remove ads before capturing | |
| 53 | +| `apiKey` | string | Yes | CaptureKit API key | |
| 54 | + |
| 55 | +#### Output |
| 56 | + |
| 57 | +| Parameter | Type | Description | |
| 58 | +| --------- | ---- | ----------- | |
| 59 | +| `file` | file | Screenshot or PDF of the page, stored in the execution files | |
| 60 | + |
| 61 | +</ReferenceDetails> |
| 62 | + |
| 63 | +### CaptureKit Extract Content |
| 64 | + |
| 65 | +Render a web page and get its title, description, favicon, Open Graph image, internal, external and social links, and optionally its Markdown. |
| 66 | + |
| 67 | +<ReferenceDetails> |
| 68 | + |
| 69 | +#### Input |
| 70 | + |
| 71 | +| Parameter | Type | Required | Description | |
| 72 | +| --------- | ---- | -------- | ----------- | |
| 73 | +| `url` | string | Yes | URL of the page \(e.g., "https://example.com") | |
| 74 | +| `includeMarkdown` | boolean | No | Include the page content as Markdown | |
| 75 | +| `removeCookieBanners` | boolean | No | Remove cookie banners before capturing | |
| 76 | +| `removeAds` | boolean | No | Remove ads before capturing | |
| 77 | +| `apiKey` | string | Yes | CaptureKit API key | |
| 78 | + |
| 79 | +#### Output |
| 80 | + |
| 81 | +| Parameter | Type | Description | |
| 82 | +| --------- | ---- | ----------- | |
| 83 | +| `metadata` | object | Page metadata | |
| 84 | +| ↳ `title` | string | Page title | |
| 85 | +| ↳ `description` | string | Meta description | |
| 86 | +| ↳ `favicon` | string | Favicon URL | |
| 87 | +| ↳ `ogImage` | string | Open Graph image URL | |
| 88 | +| `links` | object | Links found on the page | |
| 89 | +| ↳ `internal` | array | Links to the same site | |
| 90 | +| ↳ `external` | array | Links to other sites | |
| 91 | +| ↳ `social` | array | Links to social profiles | |
| 92 | +| `markdown` | string | Page content as Markdown, when requested | |
| 93 | + |
| 94 | +</ReferenceDetails> |
| 95 | + |
| 96 | +### CaptureKit Fetch HTML |
| 97 | + |
| 98 | +Fetch the raw HTML of a public page over plain HTTP, without a browser. |
| 99 | + |
| 100 | +<ReferenceDetails> |
| 101 | + |
| 102 | +#### Input |
| 103 | + |
| 104 | +| Parameter | Type | Required | Description | |
| 105 | +| --------- | ---- | -------- | ----------- | |
| 106 | +| `url` | string | Yes | URL of the page, with http or https \(e.g., "https://example.com") | |
| 107 | +| `apiKey` | string | Yes | CaptureKit API key | |
| 108 | + |
| 109 | +#### Output |
| 110 | + |
| 111 | +| Parameter | Type | Description | |
| 112 | +| --------- | ---- | ----------- | |
| 113 | +| `html` | string | Raw HTML of the page | |
| 114 | + |
| 115 | +</ReferenceDetails> |
| 116 | + |
| 117 | +### CaptureKit Analyze Website |
| 118 | + |
| 119 | +Read a website and get an AI summary of its value proposition, business type, key features, categories, use cases, audience and contact details. |
| 120 | + |
| 121 | +<ReferenceDetails> |
| 122 | + |
| 123 | +#### Input |
| 124 | + |
| 125 | +| Parameter | Type | Required | Description | |
| 126 | +| --------- | ---- | -------- | ----------- | |
| 127 | +| `url` | string | Yes | URL of the page \(e.g., "https://example.com") | |
| 128 | +| `customPrompt` | string | No | Extra instructions for the analysis \(e.g., "Focus on pricing"\) | |
| 129 | +| `apiKey` | string | Yes | CaptureKit API key | |
| 130 | + |
| 131 | +#### Output |
| 132 | + |
| 133 | +| Parameter | Type | Description | |
| 134 | +| --------- | ---- | ----------- | |
| 135 | +| `summary` | string | Summary of what the website offers | |
| 136 | +| `valueProposition` | string | Value proposition of the website | |
| 137 | +| `businessType` | string | Type of business | |
| 138 | +| `targetAudience` | string | Audience the website addresses | |
| 139 | +| `callToAction` | string | Main call to action of the website | |
| 140 | +| `keyFeatures` | array | Key features of the product or service | |
| 141 | +| `categories` | array | Categories of the website | |
| 142 | +| `useCases` | array | Use cases the website describes | |
| 143 | +| `emails` | array | Email addresses found on the website | |
| 144 | +| `phoneNumbers` | array | Phone numbers found on the website | |
| 145 | + |
| 146 | +</ReferenceDetails> |
| 147 | + |
| 148 | + |
0 commit comments