Skip to main content
Glama

Create shape from SVG

create_shape_from_svg

Convert SVG path data or full SVG markup into editable After Effects shape-layer paths, importing supported elements and styles into a new or existing shape layer.

Instructions

Convert SVG into editable shape-layer paths. 'svg' may be a path 'd' string (M L H V C S Q T A Z, absolute and relative; arcs are converted to beziers) or a full snippet: every , , , , , , is imported (one group per element, subpaths as separate paths in that group), with fill/stroke/stroke-width/fill-rule/opacity from attributes or style (inherited from /) and transform attributes applied. , , text, images and gradients are skipped (gradient fills become gray). Creates a new shape layer unless 'layer' is given. By default the artwork is centered on the layer origin (new layer = comp center); center=false keeps SVG coordinates (new layer placed at [0,0] so SVG units = comp pixels).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "svg": "<svg>"
    },
    "name": "create_shape_from_svg"
  }
}

Input Schema

NameRequiredDescriptionDefault
svgYesSVG path data ('M10 10 L 90 10 ...') or SVG markup ('<svg ...><path d=.../></svg>').
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
fillNoOverride fill color for all elements (false/'none' = no fill). Path-data input defaults to white.
nameNoName of the new layer (default 'SVG Shape').
layerNoExisting shape layer to add to (default: create a new one).
scaleNoScale factor for SVG units (default 1).
centerNoCenter the artwork's bounding box on the group origin (default true).
strokeNoOverride stroke color for all elements.
fitSizeNoScale uniformly so the longest side of the artwork is this many px (overrides scale).
fillRuleNoOverride fill rule.
positionNoPosition of the created group (layer coordinates relative to the layer origin).
groupNameNoName of the created group (default 'SVG').
groupPathNoGroup to add into (existing layer only).
strokeWidthNoOverride stroke width px.
currentColorNoColor used for 'currentColor' (default white), e.g. for icon sets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare it as a non-read-only, non-destructive, closed-world write, and the description adds substantial context beyond that: which elements are imported, that <defs>/<use>/text/images/gradients are skipped, gradient fills become gray, subpaths become separate paths, and attribute inheritance from <svg>/<g>. It stops short of describing error behavior or what happens on invalid SVG.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then proceeds through input forms, import rules, and placement defaults in a logical order. It is dense and semicolon-heavy in a single paragraph, which slightly hurts scanability but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter tool with no output schema, the description covers the essential behaviors: input formats, skipped features, fill/stroke inheritance, and centering/coordinate semantics. It could mention what is returned (the created layer/group) and default naming, though name/groupName defaults are in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description still adds real meaning by explaining 'svg' input forms, that 'center=false' preserves SVG coordinates and places a new layer at [0,0], and that omitting 'layer' creates a new layer. It does not elaborate on scale/fitSize/position interplay beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Convert SVG into editable shape-layer paths.' It clearly delineates the tool from siblings like create_shape_layer or add_shape by emphasizing SVG ingestion and shape-layer path output, including that a new layer is created unless one is supplied.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains the two accepted input modes (path 'd' string vs full <svg> snippet) and what each imports, plus the new-layer-vs-existing-layer condition via 'layer'. It does not explicitly route to sibling alternatives (e.g., create_shape_layer for non-SVG shapes), so guidance is clear but not fully comparative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools