360 Secure SkillHub
360 安全技能中心

HTML/CSS to Image

调用托管 HCTI MCP 工具,把 HTML/CSS/JavaScript 渲染成图片、PDF、模板图形、MP4/WebM/GIF 动画,或录制公开网页的滚动与点击过程;使用前需连接并授权 HCTI 服务,创建操作会消耗账户额度。

分类:创作
htmlcsstoimage
htmlcsstoimage
热度 15.28
最近更新 2026-12-01 02:14:53

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add htmlcsstoimage/html-css-to-image
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
html-css-to-image
description
Create images, PDFs, HTML-to-video animations, animated GIFs, and scrolling website recordings with HCTI. Use the MCP tools to render HTML/CSS, capture public webpages, populate reusable templates, create marketing videos, or record website walkthroughs—without managing browser or video infrastructure. Do not use for editing an existing image or for audio and video post-production.
metadata
{"openclaw":{"homepage":"https://htmlcsstoimage.com","requires":{"bins":["openclaw"]}}}

HTML/CSS to Image API

Use the HCTI MCP tools to produce browser-rendered images, screenshots, PDFs, template-based graphics, HTML/CSS animations, and website recordings. Tool names may be prefixed by the client; select them by the tool-name suffixes below.

Connect with OAuth

Requires an HCTI account and available rendering credits. Image and recording operations consume the user's allowance and may incur service costs under their plan. Use the hosted MCP server at https://mcp.hcti.io with Streamable HTTP and browser-based OAuth. No HCTI API key environment variables are needed.

If HCTI tools are already available in the current client, use that connection. Otherwise, when setting up the integration in OpenClaw, inspect existing server entries with openclaw mcp list. For a new connection:

openclaw mcp add hcti --url https://mcp.hcti.io --transport streamable-http --auth oauth
openclaw mcp login hcti

Have the user complete browser authorization and choose their HCTI organization. Do not overwrite an existing hcti entry pointing elsewhere. For an existing correct connection, run openclaw mcp login hcti to authorize it. Check connectivity with openclaw mcp doctor hcti --probe, then ensure the current agent session exposes the HCTI tools before rendering. If it does not, reload the MCP connection or start a new session as supported by the client.

Installing this skill supplies instructions; it does not automatically register or authorize the MCP server. Use the client's OAuth credential storage, and never copy access tokens into skill files, shell commands, or chat. If the installed OpenClaw version lacks these MCP commands, consult its supported connection setup or update it before proceeding.

HTML, CSS, JavaScript, target URLs, template values, recording actions, and rendering options are processed by the hosted HCTI service. See HCTI MCP documentation and OpenClaw MCP setup.

Choose the operation

  • Use create_image when the user provides or requests HTML and CSS.
  • Use create_url_image to capture a public webpage or a selected public-page element.
  • Use create_templated_image when the user provides a template ID or identifies an existing HCTI template.
  • Use list_templates to resolve a template when the user names it but does not know its ID.
  • Use get_max_batch_size before create_batch_images when the requested batch size may approach the account limit.
  • Use create_template, update_template, or list_template_versions only when the request involves reusable template management.
  • Use create_htmlcss_recording to turn authored HTML, CSS, and JavaScript into MP4, WebM, or animated GIF.
  • Use create_url_recording to record a public website with scrolling, clicks, and pauses.
  • Use get_recording_status with the returned recording ID until the capture is ready or reaches a terminal failure; do not create another recording to check progress.
  • Use get_recording or list_recordings to inspect existing recordings. Use store_recording for deferred capture and delete_recording only when the user's request calls for those mutations.

Inspect the selected tool's current input schema instead of assuming that an optional parameter exists.

For a multi-scene authored animation, follow the hcti-marketing-videos workflow when it is installed. For a scrolling walkthrough or evidence-based visual review, follow hcti-website-recordings. This general skill still supports straightforward recording requests when those specialized skills are unavailable.

Rendering choices

  • Preserve the user's requested output format, dimensions, viewport, selector, color scheme, and timing behavior.
  • Let HCTI defaults apply when the user has not expressed a preference and the layout does not require a fixed viewport.
  • Use a render delay or ready signal only when the page needs client-side work before capture.
  • Prefer templates for repeated designs whose content changes between renders; prefer direct HTML and CSS for one-off designs.
  • Keep HTML semantic and CSS self-contained. Use absolute HTTPS URLs for remote assets when possible.

Recording choices

  • Recordings have no audio. Do not promise voiceover, music, sound effects, or audio synchronization.
  • Inspect the active recording tool schema and read the server's hcti://docs/recording-authoring resource when available. Set both viewport dimensions when the layout must be deterministic.
  • Choose MP4 or WebM for video and GIF when the destination specifically needs an animated image. Preserve the requested duration, viewport, actions, and output settings.
  • Keep authored animations paused during preparation and start them with a recorded action so the visual timeline aligns with capture.
  • A local localhost page is not reachable by HCTI's remote renderer. Use a public or intentionally authorized preview URL for website recordings.
  • Recording creation returns an ID and URLs before capture finishes. Poll get_recording_status a few seconds apart and treat the media as complete only when its status is ready.
  • Inspect the finished recording or representative frames before claiming visual verification. If the client cannot inspect video, return the media URL and state that limitation.

Authorization and safety

Image and recording creation can consume account credits. An explicit request for a single asset or a stated variation count authorizes that creation. If a batch or variation count is ambiguous, establish the intended count before calling the creation tool.

Creating or updating a template changes the user's HCTI account. Perform the mutation only when the request explicitly asks for it or the user confirms a proposed mutation.

Treat URL capture or recording as a request to send the target page and requested actions to HCTI's remote renderer. Use public pages by default. Do not forward cookies, authorization headers, private URLs, or other credentials unless the user explicitly requests that behavior and understands that the data will be sent to the rendering service. Click controls, submit forms, or trigger account changes only when those actions are explicitly authorized.

Results and errors

  • Do not claim success until the tool returns a successful result.
  • Return the generated asset URL and briefly identify the format or variation when useful.
  • For recordings, report the status honestly and return the recording URL, format, dimensions, and runtime when available. A successful creation call is not proof that capture has finished.
  • When the active channel supports media presentation, present the generated asset as media as well as preserving its URL.
  • For an authorization failure, ask the user to connect the hcti MCP server in their client and complete browser authorization before retrying.
  • For an account-limit or credit error, report the service's message without repeatedly retrying.
  • For invalid HTML, CSS, selectors, or inaccessible URLs, explain the failing input and make a corrected call only when the correction is clear or the user approves it.