AI agents use heygen_create_avatar_video to create or update resources in UnClick — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your UnClick environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
test | boolean | — | Set true to generate a watermarked test video (does not use quota) |
title | string | — | Video title for reference |
width | number | — | Video width in pixels (default: 1280) |
height | number | — | Video height in pixels (default: 720) |
script | string | Yes | The text the avatar will speak |
api_key | string | Yes | HeyGen API key |
voice_id | string | — | Voice ID (use heygen_list_voices to find available voices) |
avatar_id | string | Yes | Avatar ID (use heygen_list_avatars to find available avatars) |
avatar_style | string | — | Avatar style: normal, circle, closeUp (default: normal) |
background_url | string | — | URL of background image |
Parameters from the server's own tool schema.
This tool creates AI-generated video content using a script and voice selection. It is a Write operation (creating new media content) rather than Execute since it doesn't run arbitrary code. Severity is high because it can be misused to generate deepfake or misleading avatar videos at scale, and may consume credits/quota on the HeyGen platform.
From the tool's definition 'Create an AI avatar video with HeyGen. The avatar speaks a script using a selected voice. Returns a video_id to poll for completion.'
Risk signalsAccepts freeform code/query input (script) · Handles credentials or secrets (api_key) · High parameter count (10 properties)
Attacks that exploit this kind of access
Create an AI avatar video with HeyGen. The avatar speaks a script using a selected voice. Returns a video_id to poll for completion. It is categorised as a Write tool in the UnClick MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
heygen_create_avatar_video accepts 10 parameters: test, title, width, height, script, api_key, voice_id, avatar_id, avatar_style, background_url. Required: script, api_key, avatar_id. The full parameter table on this page comes from the server's own tool schema.
Register the UnClick MCP server in PolicyLayer and add a rule for heygen_create_avatar_video: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches UnClick. Nothing to install.
heygen_create_avatar_video is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the heygen_create_avatar_video rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for heygen_create_avatar_video. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
heygen_create_avatar_video is provided by the UnClick MCP server (@unclick/mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →