Skip to content

Commit a4961af

Browse files
author
Josselin Liebe
committed
feat(capturekit): add CaptureKit integration
Add a CaptureKit block for web page capture and content: - Take a screenshot of a page as PNG, JPEG, WebP or PDF, full page or by CSS selector, on 17+ emulated devices, stored as a file - Extract a page's metadata, internal, external and social links, and its Markdown - Fetch a page's raw HTML without a browser - Get an AI summary of what a website offers, its audience and contacts Outputs follow the documented OpenAPI schemas and were checked against live responses. Credentials are a CaptureKit API key sent in the x-api-key header.
1 parent 61843fe commit a4961af

24 files changed

Lines changed: 1184 additions & 7 deletions

File tree

‎apps/docs/components/icons.tsx‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10459,3 +10459,15 @@ export function PlaneIcon(props: SVGProps<SVGSVGElement>) {
1045910459
</svg>
1046010460
)
1046110461
}
10462+
10463+
export function CaptureKitIcon(props: SVGProps<SVGSVGElement>) {
10464+
return (
10465+
<svg viewBox='-0.3 1.2 20.6 20.6' fill='none' xmlns='http://www.w3.org/2000/svg' {...props}>
10466+
<title>CaptureKit</title>
10467+
<path
10468+
d='M10.001 15.112C13.529 15.112 16.39 17.973 16.39 21.501H14.14C14.14 19.215 12.287 17.362 10.001 17.362C7.715 17.362 5.862 19.215 5.862 21.501H3.612C3.612 17.973 6.473 15.112 10.001 15.112ZM0 5.111C3.528 5.111 6.389 7.972 6.389 11.5C6.389 15.028 3.528 17.888 0 17.888V15.638C2.286 15.638 4.139 13.785 4.139 11.5C4.139 9.215 2.286 7.361 0 7.361V5.111ZM20.002 7.361C17.716 7.361 15.863 9.215 15.863 11.5C15.863 13.785 17.716 15.638 20.002 15.638V17.888C16.474 17.888 13.613 15.028 13.613 11.5C13.613 7.972 16.474 5.111 20.002 5.111V7.361ZM5.862 1.499C5.862 3.785 7.715 5.638 10.001 5.638C12.287 5.638 14.14 3.785 14.14 1.499H16.39C16.39 5.027 13.529 7.888 10.001 7.888C6.473 7.888 3.612 5.027 3.612 1.499H5.862Z'
10469+
fill='#7626FF'
10470+
/>
10471+
</svg>
10472+
)
10473+
}

‎apps/docs/components/ui/icon-mapping.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import {
4848
BufferIcon,
4949
CalComIcon,
5050
CalendlyIcon,
51+
CaptureKitIcon,
5152
CbInsightsIcon,
5253
ChartBarIcon,
5354
CheckrIcon,
@@ -362,6 +363,7 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
362363
buffer: BufferIcon,
363364
calcom: CalComIcon,
364365
calendly: CalendlyIcon,
366+
capturekit: CaptureKitIcon,
365367
cbinsights: CbInsightsIcon,
366368
chat_trigger: Task,
367369
checkr: CheckrIcon,
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
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+

‎apps/docs/content/docs/integrations/meta.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"calcom",
3535
"calcom-service-account",
3636
"calendly",
37+
"capturekit",
3738
"cbinsights",
3839
"checkr",
3940
"circleback",

0 commit comments

Comments
 (0)