This record as markdown: /tools/synthetic-ai-ae-mcp/remove-keyframes.md
What remove_keyframes does on Ae
AI agents call remove_keyframes to permanently remove resources in Ae, typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.
| Parameter | Type | Required | Description |
|---|---|---|---|
all | boolean | — | Remove all keyframes. Defaults to false. |
save | boolean | — | Save after updating. Defaults to false. |
indices | array | — | Optional 1-based keyframe indices. |
timeEnd | number | — | Optional inclusive end time. |
compName | string | Yes | Composition name. |
layerName | string | Yes | Layer name. |
timeStart | number | — | Optional inclusive start time. |
timeoutMs | number | — | Process timeout in milliseconds. Defaults to 120000. |
projectPath | string | — | Optional absolute path to an .aep file to open first. |
propertyPath | array | Yes | Property path, preferably match names. |
Parameters from the server's own tool schema.
Why remove_keyframes is rated Critical
An AI agent that decides to call remove_keyframes doesn't hesitate, doesn't double-check, and doesn't stop at one. Whatever it removes from Ae is gone. There is no undo for destructive operations.
Risk signalsHigh parameter count (10 properties)
Attacks that exploit this kind of access
The rule that runs remove_keyframes safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Ae, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For remove_keyframes, this is the rule to start with:
remove_keyframes is removed from the agent's tool list entirely, so the agent never calls it. The rest of the server keeps working.
The button opens the PolicyLayer dashboard: create your workspace, connect Ae, apply this rule, and every remove_keyframes call is checked against it from then on.
Questions about remove_keyframes
Remove keyframes from a layer property by indices or time range. It is categorised as a Destructive tool in the Ae MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.
remove_keyframes accepts 10 parameters: all, save, indices, timeEnd, compName, layerName, timeStart, timeoutMs, projectPath, propertyPath. Required: compName, layerName, propertyPath. The full parameter table on this page comes from the server's own tool schema.
Register the Ae MCP server in PolicyLayer and add a rule for remove_keyframes: 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 Ae. Nothing to install.
remove_keyframes is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the remove_keyframes 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 remove_keyframes. 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.
remove_keyframes is provided by the Ae MCP server (@synthetic-ai/ae-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Ae, and thousands of servers like it.
Across the catalogue