{"at":"2026-11-23T05:48:56.203Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:48:56.612Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:48:56.712Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T05:48:57.119Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"instructions":"Read and write Adobe Animate timeline scripts as files.\n\nBasic flow:\n1. Run export_scripts to export the active document. Read index.md, then each structure.md, then the scripts.\n2. Edit the exported .as / .js files (an empty file deletes that frame's script).\n3. Run apply_scripts to apply them. The .fla is not saved; use save_document after asking the user before overwriting, or save in Animate.\n- To add a script to a frame with none, create <timeline dir>/as/<frame>.as (or .js for HTML Canvas), avoid tween spans, and run apply_scripts.\n- Use edit_timeline for layer or frame structure changes. shiftLayerFrames moves one layer's content later without shifting other layers. Always run export_scripts again before editing or applying scripts; delete operations require confirm: true.\n- Use edit_elements to set instance properties on keyframes; tween interiors are refused, and the .fla is not saved.\n- Use inspect_timeline to check instances and tweens instead of run_jsfl; use the distributeToLayers operation to split a layer.\n- Use edit_tween to animate instances; motion is the default and ease presets include quad, cubic, quart, quint, sine, expo, circ and back.\n- Use edit_library to organize library folders and items. Re-export with export_scripts before apply_scripts; deleteItem requires confirm: true and refuses items in use.\n- If a frame changed in Animate before you applied, Export is refused and Apply skips that frame. Export again to pull in the change.\n- If get_document_info reports greensock: true, use TweenLite/TweenMax (import com.greensock.*). For AS3 with greensock: false, use fl.transitions.Tween or propose install_greensock (confirm: true; AS3 only).\n- For HTML5 Canvas, use createjs.Tween; install_greensock does not support Canvas.\n- Use publish to publish AS3 or HTML5 Canvas documents and check the Build result; outputs at the document's publish settings are overwritten. Canvas compile errors cannot be detected.\n- Use capture_frame to inspect the active timeline as PNG images; request one frame or an inclusive range of up to 24 frames. It saves new images under ~/.animate-mcp/captures/<document>/ and restores the current frame.\n\nNotes:\n- When several documents are open, document is required. get_document_info returns the name.\n- AS3 and HTML5 Canvas have different APIs. Check the document type before trying things with run_jsfl.\n- Use read_output to inspect the current Output and Compiler Errors panels; their contents may be stale or mixed because Animate does not identify their source document or run.\n- When a script fails with a null error, first check the layer's frame length and instance names with run_jsfl.\n- If you add debug traces, always remove them after checking and Apply again.\n- run_jsfl runs arbitrary code. Ask the user before any operation that modifies the document.","protocolVersion":"2025-11-25","serverInfo":{"name":"animate-mcp","version":"0.1.8"}}}}
{"at":"2026-11-23T05:48:57.119Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:48:57.119Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:48:57.126Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":true,"openWorldHint":true,"readOnlyHint":false},"description":"Execute arbitrary code as JSFL inside Adobe Animate; it may modify documents or files. Prefer dedicated tools for document, timeline, tween, library, and script operations, and use run_jsfl only as a last resort when they cannot accomplish the task.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"code":{"description":"Arbitrary JSFL source to execute in Adobe Animate; use only when dedicated tools cannot accomplish the task.","type":"string"}},"required":["code"],"type":"object"},"name":"run_jsfl"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":true},"description":"Get the active Animate document's name, size, frame rate, timeline names, ActionScript version (null for Canvas/unknown), and whether GreenSock is installed beside the FLA.","execution":{"taskSupport":"forbidden"},"inputSchema":{"properties":{},"type":"object"},"name":"get_document_info"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Open an existing .fla by path, or create a new AS3 timeline or HTML5 Canvas document with Animate's defaults. Specify exactly one of path or type; this never chooses an active document. Returns the document name and Animate-reported path (null for a new unsaved document).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"path":{"description":"Path or file URI of an existing .fla file to open","minLength":1,"type":"string"},"type":{"description":"Create a new AS3 timeline or HTML5 Canvas document","enum":["timeline","htmlcanvas"],"type":"string"}},"type":"object"},"name":"open_document"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Save an explicitly selected open document by exact name or path; this never defaults to the active document. Optionally provide a save-as path. Saving to the document's current path or any existing file requires confirm: true; ask the user before passing confirm: true. An unsaved document requires a save-as path. Returns Animate's verified saved path.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"confirm":{"const":true,"description":"Required to overwrite; only pass after asking the user","type":"boolean"},"document":{"description":"Exact open document name or path","minLength":1,"type":"string"},"path":{"description":"Optional save-as destination path or file URI","minLength":1,"type":"string"}},"required":["document"],"type":"object"},"name":"save_document"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Close exactly one open document by its exact name or saved path. This never defaults to the active document or saves; all unsaved changes are discarded without a prompt, so require explicit user consent and set discardUnsavedChanges to true only when that loss is intended. Otherwise call save_document first.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"discardUnsavedChanges":{"description":"Must be true to discard unsaved changes; otherwise save first","type":"boolean"},"document":{"description":"Exact open document name or saved path","minLength":1,"type":"string"}},"required":["document"],"type":"object"},"name":"close_document"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Convert one or more elements on the same 1-based frame of a scene or Library-symbol timeline into one movie clip, button, or graphic symbol. Each element identifies a layer and a zero-based element index or unique name. The timeline, layers, elements, tween state, and unique plain Library name are validated before conversion; tween interiors are refused. Registration defaults to center. Selection, current frame, layer, and touched layer locks are restored when Animate permits. This does not set linkage or save the .fla; use edit_library setLinkage afterwards if needed, and save with save_document (after confirming any overwrite) or in Animate.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"document":{"type":"string"},"elements":{"items":{"additionalProperties":false,"properties":{"element":{"anyOf":[{"maximum":9007199254740991,"minimum":0,"type":"integer"},{"minLength":1,"type":"string"}]},"layer":{"anyOf":[{"maximum":9007199254740991,"minimum":0,"type":"integer"},{"minLength":1,"type":"string"}]}},"required":["layer","element"],"type":"object"},"minItems":1,"type":"array"},"frame":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"name":{"minLength":1,"pattern":"^[^/]+$","type":"string"},"registrationPoint":{"default":"center","enum":["top left","top center","top right","center left","center","center right","bottom left","bottom center","bottom right"],"type":"string"},"timeline":{"anyOf":[{"maximum":9007199254740991,"minimum":0,"type":"integer"},{"minLength":1,"type":"string"}]},"type":{"enum":["movie clip","button","graphic"],"type":"string"}},"required":["timeline","frame","elements","name","type"],"type":"object"},"name":"convert_to_symbol"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false},"description":"Download GreenSock-AS3 12.1.5 into com/greensock beside a saved AS3 document. Requires confirm: true after reviewing https://gsap.com/standard-license/; does not modify or save the .fla. Not supported for AS2 or HTML5 Canvas.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"confirm":{"type":"boolean"},"document":{"type":"string"}},"type":"object"},"name":"install_greensock"},{"annotations":{"destructiveHint":true,"openWorldHint":true,"readOnlyHint":false},"description":"Export the active Animate document's scene and library-symbol Timeline scripts (AS3 / HTML5 Canvas) to files, with index.md and per-timeline structure.md. Default dir: ~/.animate-mcp/exports/<document>/. Refuses to overwrite edits not yet applied unless force is true; files of the previous Export are replaced.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"dir":{"type":"string"},"document":{"type":"string"},"force":{"type":"boolean"}},"type":"object"},"name":"export_scripts"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Edit layers (addLayer, deleteLayer, moveLayer, renameLayer, setLayerType, distributeToLayers) and frames (insertFrames, removeFrames, insertKeyframe, clearKeyframe, setLabel, setSpanLength, shiftLayerFrames) in order. Layer references use a name and optional zero-based index; frame numbers are 1-based. distributeToLayers splits a single-span layer of symbol instances into one layer per instance. shiftLayerFrames moves one layer's full content later without shifting other layers; it uses cut/paste (overwrites the clipboard, and if it fails midway the layer may be left changed: undo in Animate). Stops at the first failed op. deleteLayer and removeFrames require confirm: true. Tween interiors reject frame insertion/removal/keyframe changes. Always run export_scripts again before editing or applying scripts. Changes apply to the open document but do not save the .fla; use save_document after confirming an overwrite, or save in Animate.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"document":{"type":"string"},"ops":{"items":{"oneOf":[{"properties":{"above":{"type":"string"},"below":{"type":"string"},"name":{"minLength":1,"type":"string"},"op":{"const":"addLayer","type":"string"},"parent":{"type":"string"},"type":{"enum":["normal","mask","masked","guide","folder"],"type":"string"}},"required":["op","name"],"type":"object"},{"properties":{"confirm":{"type":"boolean"},"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"layer":{"type":"string"},"op":{"const":"deleteLayer","type":"string"}},"required":["op","layer"],"type":"object"},{"properties":{"above":{"type":"string"},"below":{"type":"string"},"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"layer":{"type":"string"},"op":{"const":"moveLayer","type":"string"},"parent":{"type":"string"}},"required":["op","layer"],"type":"object"},{"properties":{"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"layer":{"type":"string"},"name":{"minLength":1,"type":"string"},"op":{"const":"renameLayer","type":"string"}},"required":["op","layer","name"],"type":"object"},{"properties":{"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"layer":{"type":"string"},"op":{"const":"setLayerType","type":"string"},"parent":{"type":"string"},"type":{"enum":["normal","mask","masked","guide","folder"],"type":"string"}},"required":["op","layer","type"],"type":"object"},{"properties":{"count":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"frame":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"layer":{"type":"string"},"op":{"const":"insertFrames","type":"string"},"ripple":{"type":"boolean"}},"required":["op","layer","frame","count"],"type":"object"},{"properties":{"confirm":{"type":"boolean"},"count":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"frame":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"layer":{"type":"string"},"op":{"const":"removeFrames","type":"string"},"ripple":{"type":"boolean"}},"required":["op","layer","frame","count"],"type":"object"},{"properties":{"frame":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"layer":{"type":"string"},"op":{"const":"insertKeyframe","type":"string"}},"required":["op","layer","frame"],"type":"object"},{"properties":{"frame":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"layer":{"type":"string"},"op":{"const":"clearKeyframe","type":"string"}},"required":["op","layer","frame"],"type":"object"},{"properties":{"frame":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"label":{"type":"string"},"layer":{"type":"string"},"op":{"const":"setLabel","type":"string"}},"required":["op","layer","frame","label"],"type":"object"},{"properties":{"frame":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"layer":{"type":"string"},"length":{"maximum":9007199254740991,"minimum":2,"type":"integer"},"op":{"const":"setSpanLength","type":"string"},"ripple":{"type":"boolean"}},"required":["op","layer","frame","length"],"type":"object"},{"properties":{"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"layer":{"type":"string"},"offset":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"op":{"const":"shiftLayerFrames","type":"string"}},"required":["op","layer","offset"],"type":"object"},{"properties":{"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"layer":{"type":"string"},"op":{"const":"distributeToLayers","type":"string"}},"required":["op","layer"],"type":"object"}]},"minItems":1,"type":"array"},"timeline":{"anyOf":[{"maximum":9007199254740991,"minimum":0,"type":"integer"},{"minLength":1,"type":"string"}],"description":"Scene index (0-based number) or library item path (string)"}},"required":["timeline","ops"],"type":"object"},"name":"edit_timeline"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Set symbol-instance properties on 1-based keyframes in a scene or library-symbol timeline, or add a Library item to a named layer and frame. Add creates a missing layer and extends the timeline; omitted coordinates use the stage center. Existing layer and element references are names or zero-based indexes; all operations are validated before any write, tween interiors and non-instance elements are refused, and temporary layer unlocks, selection, and the current frame are restored. Rotation and skew cannot be set together in one operation. Supplying filters replaces all existing filters; [] clears them. Read-back element fields match inspect_timeline, plus layer/frame/element references. Animate may quantize transform values. Changes do not save the .fla; use save_document after confirming an overwrite, or save in Animate.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"document":{"type":"string"},"ops":{"items":{"anyOf":[{"additionalProperties":false,"properties":{"frame":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"item":{"minLength":1,"type":"string"},"layer":{"minLength":1,"type":"string"},"op":{"const":"add","type":"string"},"set":{"additionalProperties":false,"properties":{"blendMode":{"minLength":1,"type":"string"},"colorEffect":{"oneOf":[{"additionalProperties":false,"properties":{"mode":{"const":"none","type":"string"}},"required":["mode"],"type":"object"},{"additionalProperties":false,"properties":{"alphaPercent":{"type":"number"},"mode":{"const":"alpha","type":"string"}},"required":["mode","alphaPercent"],"type":"object"},{"additionalProperties":false,"properties":{"brightnessPercent":{"type":"number"},"mode":{"const":"brightness","type":"string"}},"required":["mode","brightnessPercent"],"type":"object"},{"additionalProperties":false,"properties":{"mode":{"const":"tint","type":"string"},"tintColor":{"type":"string"},"tintPercent":{"type":"number"}},"required":["mode","tintColor","tintPercent"],"type":"object"},{"additionalProperties":false,"properties":{"blueAmount":{"type":"number"},"bluePercent":{"type":"number"},"greenAmount":{"type":"number"},"greenPercent":{"type":"number"},"mode":{"const":"advanced","type":"string"},"redAmount":{"type":"number"},"redPercent":{"type":"number"}},"required":["mode"],"type":"object"}]},"filters":{"items":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"type":"array"},"name":{"type":"string"},"rotation":{"type":"number"},"scaleX":{"type":"number"},"scaleY":{"type":"number"},"skewX":{"type":"number"},"skewY":{"type":"number"},"visible":{"type":"boolean"},"x":{"type":"number"},"y":{"type":"number"}},"type":"object"},"x":{"type":"number"},"y":{"type":"number"}},"required":["op","item","layer","frame"],"type":"object"},{"additionalProperties":false,"properties":{"element":{"anyOf":[{"maximum":9007199254740991,"minimum":0,"type":"integer"},{"minLength":1,"type":"string"}]},"frame":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"layer":{"anyOf":[{"maximum":9007199254740991,"minimum":0,"type":"integer"},{"minLength":1,"type":"string"}]},"set":{"additionalProperties":false,"properties":{"blendMode":{"minLength":1,"type":"string"},"colorEffect":{"oneOf":[{"additionalProperties":false,"properties":{"mode":{"const":"none","type":"string"}},"required":["mode"],"type":"object"},{"additionalProperties":false,"properties":{"alphaPercent":{"type":"number"},"mode":{"const":"alpha","type":"string"}},"required":["mode","alphaPercent"],"type":"object"},{"additionalProperties":false,"properties":{"brightnessPercent":{"type":"number"},"mode":{"const":"brightness","type":"string"}},"required":["mode","brightnessPercent"],"type":"object"},{"additionalProperties":false,"properties":{"mode":{"const":"tint","type":"string"},"tintColor":{"type":"string"},"tintPercent":{"type":"number"}},"required":["mode","tintColor","tintPercent"],"type":"object"},{"additionalProperties":false,"properties":{"blueAmount":{"type":"number"},"bluePercent":{"type":"number"},"greenAmount":{"type":"number"},"greenPercent":{"type":"number"},"mode":{"const":"advanced","type":"string"},"redAmount":{"type":"number"},"redPercent":{"type":"number"}},"required":["mode"],"type":"object"}]},"filters":{"items":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"type":"array"},"name":{"type":"string"},"rotation":{"type":"number"},"scaleX":{"type":"number"},"scaleY":{"type":"number"},"skewX":{"type":"number"},"skewY":{"type":"number"},"visible":{"type":"boolean"},"x":{"type":"number"},"y":{"type":"number"}},"type":"object"}},"required":["layer","frame","element","set"],"type":"object"}]},"minItems":1,"type":"array"},"timeline":{"anyOf":[{"maximum":9007199254740991,"minimum":0,"type":"integer"},{"minLength":1,"type":"string"}],"description":"Scene index (0-based number) or library item path (string)"}},"required":["timeline","ops"],"type":"object"},"name":"edit_elements"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":true},"description":"Read layer metadata, keyframe spans, and element properties at a 1-based frame in a scene or library symbol. Specify layers by name or zero-based index; defaults to all layers and frame 1. Motion tween properties are reported from motion keyframes rather than unreliable interpolated instances.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"document":{"type":"string"},"frame":{"default":1,"description":"Frame number, 1-based; defaults to 1","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"layers":{"description":"Layer names or zero-based indexes; defaults to all layers","items":{"anyOf":[{"minLength":1,"type":"string"},{"maximum":9007199254740991,"minimum":0,"type":"integer"}]},"type":"array"},"timeline":{"anyOf":[{"maximum":9007199254740991,"minimum":0,"type":"integer"},{"minLength":1,"type":"string"}],"description":"Scene index (0-based number) or library item path (string)"}},"required":["timeline"],"type":"object"},"name":"inspect_timeline"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Create motion (default) or classic tweens for a named instance with createTween, or change easing on an existing tween with setEase. Frames are 1-based; layer references use a name and optional zero-based index. The instance must be the only element on its layer; existing tween spans are not replaced. Alpha, brightness, and tint are mutually exclusive Animate color modes. Ease presets include quad, cubic, quart, quint, sine, expo, circ, back In/Out/InOut and linear. Stops at the first failed op. Always run export_scripts again before editing or applying scripts. Changes apply to the open document but do not save the .fla; use save_document after confirming an overwrite, or save in Animate.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"document":{"type":"string"},"ops":{"items":{"oneOf":[{"properties":{"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"instance":{"minLength":1,"type":"string"},"keyframes":{"items":{"properties":{"alpha":{"maximum":100,"minimum":0,"type":"number"},"blur":{"properties":{"alpha":{"maximum":100,"minimum":0,"type":"number"},"angle":{"type":"number"},"blurX":{"minimum":0,"type":"number"},"blurY":{"minimum":0,"type":"number"},"color":{"type":"string"},"distance":{"type":"number"},"hideObject":{"type":"boolean"},"inner":{"type":"boolean"},"knockout":{"type":"boolean"},"quality":{"maximum":15,"minimum":1,"type":"integer"},"strength":{"maximum":255,"minimum":0,"type":"number"},"x":{"minimum":0,"type":"number"},"y":{"minimum":0,"type":"number"}},"type":"object"},"brightness":{"maximum":100,"minimum":-100,"type":"number"},"dropShadow":{"properties":{"alpha":{"maximum":100,"minimum":0,"type":"number"},"angle":{"type":"number"},"blurX":{"minimum":0,"type":"number"},"blurY":{"minimum":0,"type":"number"},"color":{"type":"string"},"distance":{"type":"number"},"hideObject":{"type":"boolean"},"inner":{"type":"boolean"},"knockout":{"type":"boolean"},"quality":{"maximum":15,"minimum":1,"type":"integer"},"strength":{"maximum":255,"minimum":0,"type":"number"},"x":{"minimum":0,"type":"number"},"y":{"minimum":0,"type":"number"}},"type":"object"},"dx":{"type":"number"},"dy":{"type":"number"},"ease":{"anyOf":[{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},{"properties":{"alpha":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},"blur":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},"brightness":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},"default":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},"dropShadow":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},"glow":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},"rotation":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},"scaleX":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},"scaleY":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},"tint":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},"x":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},"y":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]}},"type":"object"}]},"frame":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"glow":{"properties":{"alpha":{"maximum":100,"minimum":0,"type":"number"},"angle":{"type":"number"},"blurX":{"minimum":0,"type":"number"},"blurY":{"minimum":0,"type":"number"},"color":{"type":"string"},"distance":{"type":"number"},"hideObject":{"type":"boolean"},"inner":{"type":"boolean"},"knockout":{"type":"boolean"},"quality":{"maximum":15,"minimum":1,"type":"integer"},"strength":{"maximum":255,"minimum":0,"type":"number"},"x":{"minimum":0,"type":"number"},"y":{"minimum":0,"type":"number"}},"type":"object"},"rotation":{"type":"number"},"scaleX":{"type":"number"},"scaleY":{"type":"number"},"tint":{"properties":{"amount":{"maximum":100,"minimum":0,"type":"number"},"color":{"type":"string"}},"required":["color","amount"],"type":"object"},"x":{"type":"number"},"y":{"type":"number"}},"required":["frame"],"type":"object"},"minItems":2,"type":"array"},"kind":{"enum":["motion","classic"],"type":"string"},"layer":{"type":"string"},"op":{"const":"createTween","type":"string"}},"required":["op","layer","instance","keyframes"],"type":"object"},{"properties":{"ease":{"anyOf":[{"type":"string"},{"maximum":100,"minimum":-100,"type":"number"},{"additionalItems":false,"items":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"maxItems":4,"minItems":4,"type":"array"}]},"frame":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"index":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"layer":{"type":"string"},"op":{"const":"setEase","type":"string"}},"required":["op","layer","frame","ease"],"type":"object"}]},"minItems":1,"type":"array"},"timeline":{"anyOf":[{"maximum":9007199254740991,"minimum":0,"type":"integer"},{"minLength":1,"type":"string"}],"description":"Scene index (0-based number) or library item path (string)"}},"required":["timeline","ops"],"type":"object"},"name":"edit_tween"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Create folders, move, rename, or delete library items, list unused items, and inspect or update AS3 linkage with getLinkage/setLinkage (Flash/AS3 documents only). Operations stop at the first failure; collisions are refused. Moving or renaming items does not update code-string references. deleteItem requires confirm: true and refuses items in use. If setLinkage changes a movie clip, graphic, or button's AS3 export or class name, run export_scripts again to refresh linked-class metadata in the export workspace. After reorganizing the library, run export_scripts again before apply_scripts. Changes apply to the open document but do not save the .fla; use save_document after confirming an overwrite, or save in Animate.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"document":{"type":"string"},"ops":{"items":{"oneOf":[{"properties":{"op":{"const":"createFolder","type":"string"},"path":{"pattern":"^[^/]+(?:\\/[^/]+)*$","type":"string"}},"required":["op","path"],"type":"object"},{"properties":{"item":{"pattern":"^[^/]+(?:\\/[^/]+)*$","type":"string"},"op":{"const":"moveItem","type":"string"},"toFolder":{"anyOf":[{"const":"","type":"string"},{"pattern":"^[^/]+(?:\\/[^/]+)*$","type":"string"}]}},"required":["op","item","toFolder"],"type":"object"},{"properties":{"item":{"pattern":"^[^/]+(?:\\/[^/]+)*$","type":"string"},"newName":{"minLength":1,"pattern":"^[^/]+$","type":"string"},"op":{"const":"renameItem","type":"string"}},"required":["op","item","newName"],"type":"object"},{"properties":{"confirm":{"const":true,"type":"boolean"},"item":{"pattern":"^[^/]+(?:\\/[^/]+)*$","type":"string"},"op":{"const":"deleteItem","type":"string"}},"required":["op","item","confirm"],"type":"object"},{"properties":{"op":{"const":"listUnused","type":"string"}},"required":["op"],"type":"object"},{"additionalProperties":false,"properties":{"item":{"pattern":"^[^/]+(?:\\/[^/]+)*$","type":"string"},"op":{"const":"getLinkage","type":"string"}},"required":["op","item"],"type":"object"},{"additionalProperties":false,"properties":{"baseClass":{"type":"string"},"className":{"minLength":1,"type":"string"},"exportForAS":{"type":"boolean"},"exportInFirstFrame":{"type":"boolean"},"item":{"pattern":"^[^/]+(?:\\/[^/]+)*$","type":"string"},"op":{"const":"setLinkage","type":"string"}},"required":["op","item"],"type":"object"}]},"minItems":1,"type":"array"}},"required":["ops"],"type":"object"},"name":"edit_library"},{"annotations":{"destructiveHint":true,"openWorldHint":true,"readOnlyHint":false},"description":"Apply edited Timeline scripts from an export_scripts directory back to the Animate document (scenes and library symbols). Empty file deletes the frame script. Frames changed in Animate since Export are not overwritten. Does not save the .fla.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"dir":{"type":"string"},"document":{"type":"string"}},"required":["dir"],"type":"object"},"name":"apply_scripts"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Publish an AS3 or HTML5 Canvas document and return its Build result. Publish overwrites outputs at the document's publish settings; the .fla is not saved, and unsaved edits in the open document are published. AS3 compilerOutput is \"verified\" when compiler output is parsed, or \"unavailable\" after empty output and one retry; unavailable reports no errors, not that the build is clean. AS3 compile errors are returned as a normal result, not a tool error. HTML5 Canvas compilerOutput is \"not_checked\"; compile errors are unverified and ok only means Publish ran.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"document":{"description":"Open document name; defaults to the only open document","type":"string"}},"type":"object"},"name":"publish"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Read the current Output and Compiler Errors panels without running Publish or Test Movie or changing a document. Panel contents may be stale or mixed because Animate does not identify their source document or run. Raw panel text is returned when Animate's API provides it; compilerDiagnostics.status is unavailable when the compiler panel is empty, incomplete, or unsupported, and this does not mean a clean compile.","execution":{"taskSupport":"forbidden"},"inputSchema":{"properties":{},"type":"object"},"name":"read_output"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Run a saved AS3 document in Test Movie with abort-on-compiler-errors enabled, using its current in-memory contents (the .fla is never saved, published, or closed). Any Test Movie Player remains open for you to close. Compiler Errors raw text and parsed diagnostics are separate from a single Output-panel delta captured once two seconds after launch; later output may be missed, concurrent messages may be mixed in, and an empty delta does not prove there were no runtime errors. compilerDiagnostics.status: unavailable does not prove a clean compile.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"document":{"description":"Saved AS3 document name; defaults to the only open document","type":"string"}},"type":"object"},"name":"test_movie"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Capture one frame or an inclusive ascending range of the active AS3 or HTML5 Canvas timeline as PNG images. Specify either frame (defaults to the current frame) or range {start, end, step?}; range step defaults to 1 and at most 24 frames may be captured. Saves new files under ~/.animate-mcp/captures/<document>/. Unsaved documents are supported; the timeline frame is restored after capture, but changing frames may clear the selection. Stages larger than 2048px on either side are not scaled.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"dir":{"description":"Output directory; defaults to ~/.animate-mcp/captures/<document>/","type":"string"},"frame":{"description":"1-based timeline frame; defaults to the current frame","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"range":{"additionalProperties":false,"description":"Inclusive ascending range; captures at most 24 frames, with step defaulting to 1","properties":{"end":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"start":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"step":{"maximum":9007199254740991,"minimum":1,"type":"integer"}},"required":["start","end"],"type":"object"}},"type":"object"},"name":"capture_frame"}]}}}
