{"at":"2026-11-23T03:12:39.900Z","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-23T03:12:40.348Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T03:12:40.449Z","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-23T03:12:40.865Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"aftereffects-mcp-imt","version":"1.1.1"}}}}
{"at":"2026-11-23T03:12:40.865Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T03:12:40.865Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T03:12:40.871Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"readOnlyHint":true},"description":"Project-level info: file path, dirty flag, all items with type/summary, active item. Start here.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"ae_project_info","title":"Project info"},{"annotations":{"readOnlyHint":true},"description":"Detailed comp info: size, fps, duration, work area, motion blur, layer summaries. Pass a comp name or item id — or an ARRAY of them to fetch several comps in one call.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"nameOrId":{"anyOf":[{"type":"string"},{"type":"number"},{"items":{"type":["string","number"]},"minItems":1,"type":"array"}],"description":"Composition name (exact match) or numeric item id — or an array of either to batch several comps into one round trip. If you don't know any, call ae_project_info first."}},"required":["nameOrId"],"type":"object"},"name":"ae_comp_info","title":"Comp info"},{"annotations":{"readOnlyHint":true},"description":"Full layer info: transform, effects, masks, text, shape contents, keyframes. layerIndex accepts one index, an ARRAY of indices, or 'all' — auditing a whole comp is one call. Set includeProperties=false to skip the property tree walk.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"compNameOrId":{"description":"Composition name (exact match) or numeric item id.","type":["string","number"]},"includeProperties":{"description":"Include the full property tree (Transform/Effects/Masks/Text). Default true.","type":"boolean"},"layerIndex":{"anyOf":[{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},{"items":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"minItems":1,"type":"array"},{"const":"all","type":"string"}],"description":"1-based layer index — or an array of indices, or 'all' for every layer in the comp, returned together in one round trip."}},"required":["compNameOrId","layerIndex"],"type":"object"},"name":"ae_layer_info","title":"Layer info"},{"annotations":{"destructiveHint":false},"description":"Render a single frame to PNG. Use to visually verify edits. The agent's 'eyes' — pair with mutations for a visual feedback loop. Headless and deterministic. In color-managed projects (workingSpace != None) the capture applies AE's own display transform via a transient OCIO Display Transform adjustment layer, and the PNG comes back viewer-accurate and sRGB-tagged. Where that layer cannot be used — read-only mode, an AE without the OCIO effect, or a failed capture calibration — the result falls back to a pure-math ACES conversion or to raw values with an explicit colorWarning; check colorPipeline / colorWarning on the response.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"colorManaged":{"description":"'auto' (default): detect the working space and return a viewer-accurate, 8-bit sRGB-tagged PNG. 'off': raw legacy output (16-bit, untagged, working-space values — dark/wrong-looking in color-managed projects).","enum":["auto","off"],"type":"string"},"compNameOrId":{"description":"Composition name or numeric item id.","type":["string","number"]},"compareWith":{"description":"Absolute path of an earlier PNG (same comp size) to compare the new frame against. Adds `compare`: changedRatio (0..1 of pixels that differ), meanAbsDiff (0..1), bbox of the change — 'did my edit change the picture, and where' without reading the image.","type":"string"},"outPath":{"description":"Absolute path to write the PNG. Parent directory is created if missing.","type":"string"},"time":{"description":"Time in seconds to render.","minimum":0,"type":"number"},"useDisplayStartTime":{"description":"If true, `time` is interpreted relative to comp.displayStartTime. Default false.","type":"boolean"}},"required":["compNameOrId","time","outPath"],"type":"object"},"name":"ae_render_frame","title":"Render frame"},{"annotations":{"destructiveHint":true},"description":"Save the project. Pass `path` for Save As.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"path":{"description":"Optional absolute path to save the project to (Save As). If omitted, save to the existing path — errors if the project has never been saved.","type":"string"}},"type":"object"},"name":"ae_save_project","title":"Save project"},{"annotations":{"destructiveHint":false},"description":"Serialize the entire project to JSON (folders, comps, layers, keyframes, effects, shapes, markers, time remap, solids, file refs). Write to `outPath` or return inline.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"outPath":{"description":"If set, write the exported JSON to this absolute path on disk. If omitted, the JSON is returned inline in the tool response (can get large).","type":"string"},"pretty":{"description":"Pretty-print the JSON (2-space indent). Default: true when writing to disk, false otherwise.","type":"boolean"}},"type":"object"},"name":"ae_project_export_json","title":"Export project JSON"},{"annotations":{"destructiveHint":true},"description":"Rebuild the project from JSON (produced by ae_project_export_json). Supports `clearFirst`, `dryRun` (validate-only), `skipValidation`.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"clearFirst":{"description":"Remove all existing items from the current project before importing. Default: false (appends).","type":"boolean"},"dryRun":{"description":"If true, validate the document and return a plan without touching AE. Useful for debugging malformed exports.","type":"boolean"},"inPath":{"description":"Absolute path to a JSON document produced by ae_project_export_json. Mutually exclusive with `json`.","type":"string"},"json":{"description":"Inline JSON document (object, not string). Mutually exclusive with `inPath`."},"skipValidation":{"description":"Skip Node-side schema validation. Only use if you trust the input and want to hand broken data to AE for diagnosis.","type":"boolean"}},"type":"object"},"name":"ae_project_import_json","title":"Import project JSON"},{"annotations":{"readOnlyHint":true},"description":"AE version, build, capabilities (saveFrameToPng, app.effects, Socket). Call at session start to know what APIs are available.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"ae_version_info","title":"Version info"},{"annotations":{"readOnlyHint":true},"description":"Discover available atomic operations for ae_do. Without args: all categories with their operation names. With a category: detailed params per operation. Only operations this server will actually execute are listed.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"category":{"description":"Filter by category. Omit to list all categories with operation counts, then drill into a specific category.","type":"string"}},"type":"object"},"name":"ae_catalog","title":"Operation catalog"},{"annotations":{"destructiveHint":true},"description":"Execute an atomic operation by name (from ae_catalog). Arguments are validated against the operation's declared parameters before anything reaches AE. Have more than one operation to run? Wrap them in ONE batch.run instead of several ae_do calls — read/verify steps (comp.info, layer.info, render.frame) can ride in the same batch. Every call is automatically wrapped in ONE undo group: a single Ctrl+Z (or project.undo) reverts the entire call, and a batch.run counts as one call. Never call app.beginUndoGroup/endUndoGroup in eval.run code — the wrapper already did. The exception is undo/redo itself (project.undo, command.execute id 16/2035): those run outside the group and cannot ride inside a batch.run. Response includes ambient context (active comp, selected layers, project state) at zero extra round trips. Example: ae_do({ operation: 'keyframe.add', args: { comp: 'Main', layer: 1, property: ['Transform','Position'], time: 2, value: [960,540] } })","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"args":{"additionalProperties":{},"description":"Arguments for the operation. Validated against ae_catalog's declared params: missing required args, wrong types, and unknown keys are rejected before AE is contacted. Omit for zero-param operations.","propertyNames":{"type":"string"},"type":"object"},"dryRun":{"description":"Validate the operation and return the ExtendScript that WOULD run, without contacting After Effects. Nothing is executed and the project is not touched. Use it to preview a destructive call before committing to it.","type":"boolean"},"operation":{"description":"Operation name from ae_catalog (e.g. 'layer.create_solid', 'keyframe.add').","type":"string"},"timeoutMs":{"description":"Per-call timeout in milliseconds (default 60000). Raise for long operations like render.start or big batch.run calls.","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"}},"required":["operation"],"type":"object"},"name":"ae_do","title":"Execute operation"},{"annotations":{"readOnlyHint":true},"description":"Ambient context: project state, active comp, selected layers, item list, AE.* helpers, ES3 rules, and the undo contract (every call = one auto undo group). Call at session start; then rely on ae_do response context.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"ae_context","title":"Session context"},{"annotations":{"readOnlyHint":true},"description":"List the modal dialogs After Effects is showing, or dismiss one by its cancel action (what Escape does: a warning is acknowledged, a 'save changes?' question is cancelled — never answered for the user). Use after a DIALOG_OPEN / TIMEOUT error, or before a step known to pop a dialog. Windows + macOS; on macOS reading the text and dismissing need Accessibility permission for the app that runs this server.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"action":{"default":"list","description":"list — report open dialogs; dismiss — close the one named by `id`.","enum":["list","dismiss"],"type":"string"},"id":{"description":"Dialog id from a previous list / DIALOG_OPEN error (required for dismiss).","type":"string"}},"type":"object"},"name":"ae_dialogs","title":"After Effects dialogs"},{"annotations":{"destructiveHint":false},"description":"Object Matte (AE 26) on a layer through After Effects' UI — macOS only; no script can create a selection. Give lassos and points in the pixels of a frame you looked at (comp pixels of an ae_render_frame by default, or layer source pixels with space:\"layer\"). A LASSO takes the subjects inside the outline — AE snaps it to their silhouettes — so one lasso can take a whole group of people at once: outline them generously, heads and feet with a margin. A POINT takes the subject under it as AE segments it — often only a garment or a torso in a crowd, so use points only for a lone, clearly separated subject. mode:\"subtract\" removes (Option). The tool opens the layer in the Layer panel at `time` (the base frame), makes the Object Matte tool active (checked through the active-tool code — Option+W is the Roto Brush group's shortcut and cycles its members), acts with real mouse events, reads back the strokes the effect recorded (error_px = where each landed vs where it was meant to), optionally propagates by stepping the comp time (propagate_to), and then RENDERS A PREVIEW and returns it as images: top — the matte over black, bottom — the frame with the excluded parts in red, with markers: cyan boxes on gaps between kept pieces (where a hidden, lying or partly visible person is usually left out) and green/yellow rings on the `people` points you listed. A part of a person, someone behind another or lying on the ground is a subject too: add it with a lasso that overlaps the neighbouring kept matte so the pieces merge. The result is never verified by the tool: look at the images and check every person. With only preview_times (no points, lassos or propagate_to) it renders the preview without touching the UI — use it to check any frames. The Layer panel must be visible and large enough for the whole picture.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"comp":{"description":"Composition name or item id.","type":["string","number"]},"dry_run":{"description":"Find the picture and report the mapping without clicking.","type":"boolean"},"gap_radius":{"description":"Comp pixels: gaps narrower than ~2× this between kept pieces are reported (default 100; raise to 150–200 to catch wider holes).","exclusiveMinimum":0,"maximum":1000,"type":"number"},"lassos":{"description":"Closed outlines (≥ 3 points each, ~12–40 points following the group's contour with a margin): each takes the subjects inside it, snapped to their silhouettes.","items":{"items":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"minItems":3,"type":"array"},"type":"array"},"layer":{"description":"1-based layer index or layer name (the layer that gets the matte — the plate).","type":["string","number"]},"mode":{"description":"add (default): Shift-click / lasso adds to the matte; subtract: Option-click / Option-lasso removes.","enum":["add","subtract"],"type":"string"},"people":{"description":"Your checklist of the people who belong in the matte, picked on the frame `people_time` in COMP pixels: a point on each one's head, body and feet (any you can see). The preview marks each point green (inside the matte) or yellow (outside) and reports whole / partial / missing per person. Pass it on every call.","items":{"properties":{"body":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"feet":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"head":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"id":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"name":{"type":"string"}},"required":["id"],"type":"object"},"maxItems":60,"type":"array"},"people_time":{"description":"Frame (s) the people points were picked on (default `time`); people are checked only on that preview frame.","minimum":0,"type":"number"},"points":{"description":"Clicks: each takes the subject under it as AE segments it (in a crowd often only a part — prefer lassos).","items":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"type":"array"},"preview":{"description":"Render the preview after the actions (default true).","type":"boolean"},"preview_dir":{"description":"Absolute folder for the preview PNGs (default: the system temp folder, files overwritten each call). Use the chat's working folder.","type":"string"},"preview_overlay":{"description":"Add the bottom panel with excluded parts in red (default true; renders the frame once more with the effect switched off, then restores it).","type":"boolean"},"preview_region":{"description":"Comp-pixel rectangle to preview at higher detail (e.g. a group of people) instead of the whole frame.","properties":{"h":{"exclusiveMinimum":0,"type":"number"},"w":{"exclusiveMinimum":0,"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y","w","h"],"type":"object"},"preview_times":{"description":"Times (s) to preview. Default: the base frame, plus propagate_to when given. Alone (no points/lassos/propagate_to) = preview only, no UI.","items":{"minimum":0,"type":"number"},"maxItems":8,"type":"array"},"preview_width":{"description":"Width of each preview panel in pixels (default 1000).","maximum":1600,"minimum":400,"type":"integer"},"propagate_to":{"description":"After the actions, step the comp time from `time` to this time frame by frame so AE propagates the matte (both directions allowed).","minimum":0,"type":"number"},"settle_ms":{"description":"Pause per propagated frame (default 250 ms; raise on 4K).","maximum":5000,"minimum":0,"type":"integer"},"shot_path":{"description":"Absolute path to save the capture with the picture rectangle (PNG, ≤ 1600 px wide) for the user.","type":"string"},"space":{"description":"Coordinate space of points and lassos: comp (default — pixels of an ae_render_frame of this comp) or layer (source pixels).","enum":["comp","layer"],"type":"string"},"time":{"description":"Composition time (s) of the base frame the points were picked on.","minimum":0,"type":"number"},"tool_code":{"description":"Project.toolType code of the Object Matte tool (default \"161\", AE 26.5). The tool reads the active tool and presses Option+W only until this code is active — Option+W is the Roto Brush group's shortcut and cycles its members.","type":"string"},"zoom":{"description":"Layer panel zoom to set before acting (1 = 100 %). Default: the current zoom, lowered until the picture fits 45 % of the window width.","exclusiveMinimum":0,"maximum":4,"type":"number"}},"required":["comp","layer","time"],"type":"object"},"name":"ae_object_matte_ui","title":"Object Matte by sight"}]}}}
