extract_animation_code
Extract CSS rules, JS animation configs, and timing data from a page; reuse an animation inventory to skip re-detection.
Instructions
Extract CSS rules, JS animation configs, and timing data. Returns AnimationCode[] with css, js, and timing data. Pass inventory from discover_animations to skip re-detection.
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>"
},
"name": "extract_animation_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to extract from | |
| filter | No | Filter by detector names, e.g. ["css", "gsap"] | |
| inventory | No | Optional — pass inventory from discover_animations |