Repository navigation
feat(capturekit): add CaptureKit integration - #9834
Open
josselinlbe wants to merge 2 commits into
Open
josselinlbe wants to merge 2 commits into
josselinlbe wants to merge 2 commits into
Conversation
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.
|
Someone is attempting to deploy a commit to the Sim Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
[Medium impact] The PR appears safe to merge; no new actionable issues remain. SummaryAdds CaptureKit screenshots, content extraction, HTML fetching, and website analysis, with a workflow block, icons, catalog entries, and docs.
Reviews (3) · Last reviewed commit: "fix(capturekit): address review feedback" · Reviewed by Greptile |
- Keep the two response mappers in extract_content.ts, their only caller - Document the CaptureKitIcon export - Read the operation from the mapper context so agent tools coerce the screenshot's numeric inputs too
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a CaptureKit integration: tools, block, icon and generated docs page. I work on CaptureKit, so this PR comes from the CaptureKit team.
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.
Operations:
capturekit_screenshot): 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.capturekit_extract_content): Render a web page and get its title, description, favicon, Open Graph image, internal, external and social links, and optionally its Markdown.capturekit_fetch_html): Fetch the raw HTML of a public page over plain HTTP, without a browser.capturekit_analyze_website): Read a website and get an AI summary of its value proposition, business type, key features, categories, use cases, audience and contact details.Credentials are a CaptureKit API key on the block (
AuthMode.ApiKey), sent as thex-api-keyheader. Every tool is an externalToolConfig.requestagainst the CaptureKit API.Product update (if relevant)
Marketing, compliance and research teams can archive pages, track competitor pages, and turn websites into clean input for agents. The block appears in the integrations catalog with 7 templates and grounded skills; the docs page is
apps/docs/content/docs/integrations/capturekit.mdx.Type of Change
Testing
requestandtransformResponseto confirm the mapped outputs; fields that the API documents as nullable are optional outputs.bun run lint,bun run type-check,bun run check:audits(all 62 audits),bun run apps/sim/scripts/check-block-registry.ts origin/staging,bun run apps/sim/scripts/check-canvas-sentences.ts --block=capturekit, and the existingblocksandtools/request-transportVitest suites all pass.Checklist
Screenshots/Videos