Skip to main content
Glama

Capturar movimento CSS de página

ae_capturar_movimento_web

Captures CSS/WAAPI 2D element motion into a JSON file without opening After Effects, measuring real corners, pivot, and opacity for motion import.

Instructions

Captura quadros de um elemento 2D de página CSS/WAAPI sem abrir o AE. Mede os quatro cantos reais, pivô e opacidade; grava JSON novo no outPath. Não controla JavaScript, canvas, WebGL, vídeo ou rolagem; filtros e máscaras são avisados.

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": {
      "url": "<url>",
      "selector": "<selector>",
      "viewport": "<viewport>",
      "fps": "<fps>",
      "duration": "<duration>",
      "outPath": "<outPath>"
    },
    "name": "ae_capturar_movimento_web"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsYesTaxa de quadros da comp.
urlYesURL http(s) ou file da página; sem usuário/senha na URL.
outPathYesCaminho absoluto novo, com pasta existente, para o JSON de captura.
durationYesDuração a capturar em segundos, até 6000 amostras.
selectorYesSeletor CSS do elemento; apenas o primeiro correspondente.
viewportYes[largura, altura] do viewport e da futura comp em pixels.
timeoutMsNoTempo máximo de carregamento da página em ms.
playwrightRootNoPasta que contém node_modules/playwright; o TUIFT já possui a dependência.
browserExecutableNoExecutável Chromium opcional; omita para o browser do Playwright.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior3/5

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

With only destructiveHint=false supplied, the description adds useful behavioral boundaries: it creates a new JSON file at outPath, measures corners/pivot/opacity, and warns that filters and masks are handled. However, it does not describe browser/Playwright launch behavior, failure modes, or what the captured JSON contains.

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

Conciseness5/5

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

Three tightly written sentences front-load the purpose, then state the measurement/output behavior and limitations. There is no redundant or filler wording.

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

Completeness3/5

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

For a 9-parameter capture tool with no output schema and minimal annotations, the description covers purpose, output artifact, and major unsupported page features. It still leaves important context unstated, including browser execution requirements, output JSON structure, and failure conditions.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter is already documented in the input schema. The description adds context about the captured element and output path, but it does not add parameter-specific meaning beyond what the schema already provides.

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

Purpose4/5

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

The description gives a specific verb and resource: captures frames of a 2D element on a CSS/WAAPI page without opening AE. It clearly states what is measured and where output goes, but it does not explicitly differentiate itself from the related sibling ae_preparar_movimento_web.

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?

It establishes clear usage context by saying the tool works on CSS/WAAPI 2D page elements and explicitly excludes JavaScript, canvas, WebGL, video, and scrolling. It does not name an alternative tool or state a workflow order, so it falls short of full when-to-use versus-alternatives guidance.

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