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_imagewhen the user provides or requests HTML and CSS. - Use
create_url_imageto capture a public webpage or a selected public-page element. - Use
create_templated_imagewhen the user provides a template ID or identifies an existing HCTI template. - Use
list_templatesto resolve a template when the user names it but does not know its ID. - Use
get_max_batch_sizebeforecreate_batch_imageswhen the requested batch size may approach the account limit. - Use
create_template,update_template, orlist_template_versionsonly when the request involves reusable template management. - Use
create_htmlcss_recordingto turn authored HTML, CSS, and JavaScript into MP4, WebM, or animated GIF. - Use
create_url_recordingto record a public website with scrolling, clicks, and pauses. - Use
get_recording_statuswith the returned recording ID until the capture is ready or reaches a terminal failure; do not create another recording to check progress. - Use
get_recordingorlist_recordingsto inspect existing recordings. Usestore_recordingfor deferred capture anddelete_recordingonly 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-authoringresource 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
localhostpage 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_statusa few seconds apart and treat the media as complete only when its status isready. - 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
hctiMCP 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.
