Skip to content
HTML/CSS to ImageDocs

HCTI’s MCP server provides image generation and organization resource management. Connect your assistant using a client setup guide, then approve the permissions needed for your work.

Listed tools describe supported capabilities. Your current connection may not have permission to execute every tool. Plan eligibility also applies.

These tools require images:create. Rendering uses the organization’s image credits.

Tool Arguments Result
create_image content with html, optional css, and render options; optional include_image_data, include_file Created image details.
create_url_image content with url and render options; optional include_image_data, include_file Screenshot details.
create_templated_image template_id, template_values; optional version, include_image_data, include_file Image created from the selected template.
create_batch_images Top-level default_options and variations Batch image results. Check get_max_batch_size first.

For example, arguments to create_url_image:

{
"content": {
"url": "https://example.com",
"viewport_width": 1440,
"viewport_height": 900,
"device_scale": 1
},
"include_image_data": false,
"include_file": true
}

Use the rendering parameters and the tool’s input schema for supported options. The three single-image tools accept these top-level response options, both defaulting to false:

Option Behavior
include_image_data Render immediately and include image data for an inline preview. Enable when a preview or visual inspection is needed.
include_file Render immediately and attach the original output, including PDFs, as an MCP embedded resource with uri, mimeType, and a base64 blob. Useful for clients that restrict external links or cannot display inline image content.

Each option has a 10 MiB byte limit. If the data cannot be included, the asset URL remains available. Including preview or file data takes longer; enable both options only when both representations are needed.

Deferred renders cannot include preview or file data. A deferred render URL requires a separate authenticated PUT and must not be treated as an already rendered, readable image. See storage behavior.

When you already know a template ID, pass it directly. Finding a template by name first requires templates:read.

Create MP4, WebM, or GIF recordings of HTML/CSS or a public webpage. Recordings use the image permission scopes and the organization’s credits. See recording credits. Recordings are available on the Startup plan and above.

Tool Required permission Arguments and behavior
create_htmlcss_recording images:create content with html, optional css, duration_ms, plus optional actions and other recording parameters. Returns id, recording_url, and status_url.
create_url_recording images:create content with url, duration_ms, and actions. Same response as above.
get_recording_status images:read id. Returns the status, attempt count, and any error.
get_recording images:read id. Returns metadata, credits, and the stored source and settings.
list_recordings images:read Optional pagination. Returns recordings newest first.
store_recording images:store id. Starts a deferred recording or saves it to the configured storage. It doesn’t re-record.
delete_recording images:delete id. Deletes the recording.

Both creation tools accept content.audio for MP4 and WebM. To reuse private narration, find its ID with list_assets and pass it as content.audio.asset_id. Soundtrack options

Example arguments for create_url_recording:

{
"content": {
"url": "https://example.com/",
"viewport_width": 1280,
"viewport_height": 720,
"duration_ms": 10000,
"actions": [{ "type": "simple_scroll" }],
"output": { "format": "mp4" }
}
}

Recording tools return URLs, not media bytes. Assistants should check get_recording_status a few seconds apart until the status is ready, and shouldn’t create duplicate recordings just to check progress. The server also provides a hcti://docs/recording-authoring resource with timing and action recipes.

Tool Required permission Arguments and behavior
create_template templates:create_update content with template HTML/CSS and options. Returns template creation details.
update_template templates:create_update template_id and complete replacement content. Replaces the latest version if it has not rendered; otherwise creates a new version.
list_templates templates:read Required count (1–100), optional max_version. Returns templates with their latest versions and pagination.
list_template_versions templates:read template_id, required count (1–100), optional max_version. Returns paginated template versions.

Template lists use max_version for pagination; use the returned pagination cursor for the next call. This differs from management-resource lists, which use page_start. See templates for template concepts and the Template Editor for visual design.

Use a path such as brand/ to find files your organization already uploaded. Use the returned private_url in the HTML or CSS you send to a render tool. The upload guide walks through the same workflow in the dashboard.

Tool Permission What it does
list_assets assets:read Find assets by path prefix, file type, or requested access.
get_asset assets:read Look up an asset’s URLs and metadata by ID.
create_asset_upload_ticket assets:create_update Request an upload URL for a new path or an existing asset ID. A client with access to the file sends the bytes.
update_asset assets:create_update Change the display name or public access setting.
delete_asset assets:delete Delete the asset and its public copy.
get_asset_storage_usage usage:read Check used storage and the organization’s plan allowance.
Tool Required permission Arguments and result
check_usage usage:read No arguments. Returns images_used, images_allowed, overages_enabled, and next_reset.
get_max_batch_size usage:read No arguments. Returns the maximum batch size; 0 means the plan does not support batching, so create images individually.

Neither tool renders an image. Their responses differ from REST usage history; see usage.

Tool Required permission Arguments
list_proxies proxies:read Optional count, page_start.
get_proxy proxies:read id.
create_proxy proxies:create_update content.
update_proxy proxies:create_update id, complete replacement content.
delete_proxy proxies:delete id.

See the Proxies API for content fields and response details. Proxy responses include a top-level username (null for no authentication, with an empty string still valid) and omit passwords. To keep a password during update, send authentication with the unchanged username and retain_password: true, omitting the password. Omitting the whole authentication object removes authentication.

Tool Required permission Arguments
list_storage_destinations storage_destinations:read Optional count, page_start.
get_storage_destination storage_destinations:read id.
create_storage_destination storage_destinations:create_update content. Tests a bucket write before enabling.
update_storage_destination storage_destinations:create_update id, complete replacement content. Connection changes or re-enabling trigger a write test.
delete_storage_destination storage_destinations:delete id. Deletes configuration and credentials, not bucket objects.
get_aws_storage_external_id storage_destinations:create_update No arguments. Returns external_id for the sts:ExternalId condition and HCTI’s writer_role_arn for Principal.AWS in your role’s trust policy.

See the Storage destinations API for provider-specific content and connection-test results. To keep an access-key secret during update, set connection_info.retain_secret_access_key: true, keep the provider and access key ID unchanged, and omit the secret. Otherwise, supply the secret. Secret access keys are never returned.

Tool Required permission Arguments
list_og_configs og_configs:read Optional count, page_start.
get_og_config og_configs:read id.
create_og_config og_configs:create_update content, including config_type.
update_og_config og_configs:create_update id, complete replacement content, including config_type.
delete_og_config og_configs:delete id.

See the OG configurations API for screenshot and template request shapes. Use id for management and the returned domain_id in public OG image URLs.

For example, arguments to create_og_config:

{
"content": {
"config_type": "html_css",
"name": "Website screenshots",
"base_url": "https://example.com",
"extract_values": false,
"default_options": { "viewport_width": 1200, "viewport_height": 630 }
}
}
Tool Required permission Arguments and behavior
list_webhooks webhooks:read Optional count, page_start. Includes disabled webhooks.
get_webhook webhooks:read id. Returns configuration without signing secrets or secret parameter values.
create_webhook webhooks:create_update content with name, HTTPS URL, events, optional parameters and signing setting. An enabled webhook queues an automatic test.
update_webhook webhooks:create_update id, complete replacement content. Omitted parameters are removed. Get the configuration again after a concurrent-update conflict.
delete_webhook webhooks:delete id. Stops queued deliveries and returns true on success.
send_webhook_test_event webhooks:create_update webhook_id. Queues a test for an enabled webhook and returns event_id.
get_webhook_event webhooks:read event_id. Returns the event, destination statuses, and delivery attempts.

Subscribing also requires read permission for the selected events’ resources, such as images:read for image_stored or usage:read for organization alerts. Changing delivery settings or enabling a webhook requires read access to every selected event. API key events cannot be subscribed to through MCP because api_keys:read is excluded from OAuth. Event lookup with insufficient resource-read permission returns data: null and payload_withheld: true while retaining delivery status.

MCP responses omit signing secrets. Reveal the secret in the dashboard to configure your receiver. To keep an existing secret parameter on update, use secret: true and retain_value: true, with the same location and key and no value. If the endpoint URL changes, resend secret values instead. See the Webhooks API for content fields and response details, and the webhooks guide for signatures, event payloads, and at-least-once delivery.

Manual tests share 5 requests/minute per organization in webhook:test, separate from configuration writes. Each webhook also has a 30-second cooldown, including after an automatic test.

Management tools return structured results with success, item, and error. On success, item contains the resource, list page, or true for deletion. A list page inside item has data and pagination.next_page_start.

Management lists accept count from 1 to 100 (default 10). Pass the returned cursor as page_start until it is null. Proxy, storage, OG, and webhook lists include disabled resources. Do not assume a disabled resource can be used for new renders or deliveries.

Permission and rate-limit failures can be returned directly as MCP tool errors without this structured wrapper. Check the tool’s error status and message before using its result.

Management reads share 100 requests/minute per resource family and organization. Configuration writes share 20 requests/minute. These allowances are shared with REST. Manual webhook tests use the separate allowance described above. get_aws_storage_external_id uses the storage read group while requiring create/update permission. See rate limits.

If a tool reports insufficient permissions, it was not executed. Reconnect and approve the required access before retrying. A token refresh does not add permissions. For rate-limit errors, wait 60 seconds before retrying.

API key management is available through the REST Management API and dashboard, not MCP. MCP also has no tools for deleting images/templates or changing billing, membership, or organization settings. Use the corresponding REST operations or dashboard where available.

Tool Required permission Arguments and result
submit_feedback None Required message; optional subject and callback_url. Returns success, item.message, and item.id.

Use any authenticated MCP connection to report a bug, request a feature, or suggest an improvement. Describe what you tried, what you expected, and what happened. Include steps to reproduce the issue and related request, image, or template IDs.

Example arguments:

{
"subject": "PDF content is clipped",
"message": "The bottom of page 2 is clipped when I render my HTML as PDF. I expected the full page to appear. To reproduce, render the same HTML with format set to pdf, then png. The PNG includes all the content."
}

Submit feedback when the user requests or approves it. Remove credentials and get explicit approval before sharing private content. After submitting, share the confirmation and feedback ID.

Your organization can submit 2 reports per minute across REST and MCP. For a rate-limit error, wait 60 seconds before retrying. See the feedback guide for field limits, callbacks, and response examples.

Need help?

Talk to a human. Email support@htmlcsstoimage.com and we’ll help you get started.