{"at":"2026-11-22T23:38:43.592Z","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-22T23:38:44.697Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-22T23:38:44.848Z","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-22T23:38:45.881Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"completions":{},"extensions":{"io.modelcontextprotocol/skills":{}},"prompts":{},"resources":{},"tools":{}},"instructions":"**IMG.LY CoDesign** MCP server: design with a CE.SDK engine. Tool names here are bare (`edit`): call the prefixed name in your tool list (e.g. `mcp__codesign__edit`); `Edit` is your host's file editor. Skills: the installed skill of that name, else its `skill://codesign/<name>/SKILL.md` resource.\n\n**Before your first `edit`**, read in ONE message, in parallel: `skill://codesign/api/SKILL.md`, `skill://codesign/judge/SKILL.md` and `skill://codesign/judge/design-rules.md`; for a new design also `skill://codesign/create/SKILL.md`. Never guess an engine method or prop.\n\n**The loop, for every canvas change:**\n1. **Brief.** Derive what the request answers. If two or more of topic, audience, visual direction, brand and format are open, ask ONE round of options plus `Decide automatically` before the first `edit`. Never invent the user's values (brand colours, fonts, a locale's wording): `skill://codesign/create/intake.md`.\n   Register the brief's acceptance items with `checklist({ items })` first.\n2. **Build one complete page per `edit`**, page 1 first; name blocks and find them with `findByName`. A new design is scene first: `create({ type: 'scene', children: [page] })`; a later scene replaces the design and every block built before it.\n3. **Look** at the render each changing `edit` returns (`preview` for more). Edit again only for an objective bug (overflow, overlap, missing glyphs); polish waits for the judge.\n4. **Judge** with the `judge` loop; fix each axis below 8 in place, never by rebuilding. Never report an unjudged design as done; record the pass with `scorecard({ verdict: 'pass' })` (a later `edit`, `import` or `open` clears it).\n5. **Reply.** Every change is saved to the design as you make it; there is nothing to save. Report its `uri` and `export` a file when the brief asks.\n   A new design starts with `import({ title })`; every change revises the design you are on, so `import` a copy for another edition (a locale, a format).\n\nAny design can become a video: add timed content to the scene you have, never rebuild it; read `skill://codesign/api/video.md` first.\n\n**Design must-haves:**\n- Use the brief's copy verbatim; where it gives none, write copy that is generic but true. Never invent a name, price, date or claim.\n- Fill the format: margins 8–12 % of the shortest side, no dead bands.\n- Legible sizes. Screen: body ≥ 16 px and ≥ 1.5 % of the page height, captions ≥ 12 px, nothing below 11 px. Print: body 9–12 pt, captions ≥ 7 pt, nothing below 5 pt.\n- No widows or orphans in headings and short blocks.\n- Text padded inside its container; nothing crowds, overlaps or leaves the page.\n- One alignment grid; repeated items built identically.\n- Text contrast ≥ 4.5:1 on its actual background.\n- Template slots stay editable (`editor/select` plus `text/edit` or `fill/change`).\n\n**Speak the user's language** in everything they read. The design's own text follows the brief, else that language (say so); changing it is the `localize` skill, on request. Never translate ids, tool names, typed values or URLs, and translate a chip's label, never its value.\n\nSkills: `api` and `judge` first (above); as the brief needs, `create` `animate` `brand` `resize` `localize` `layerize` `formats` `templates` `onboard` `video-thumbnail-template` `launch-video`. Read `models` before any `asset_generate` call.","protocolVersion":"2025-11-25","serverInfo":{"icons":[{"mimeType":"image/svg+xml","sizes":["any"],"src":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjEzNi45IDEyNi4yNSAzMTkuOCAzMTkuOCI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSIjMDAwIiBkPSJNMjczLjgyNCAyNDMuNDQ2QzE1MC42NCAyMTcuODgxIDE3My4wMDUgMzc2LjA5MSAyNTYuNjE5IDM0Ny40ODhDMzAyLjg2NyAzMzEuNjY3IDMxMy4wMTMgMjMyLjg1IDM4OS41NjYgMjUzLjQxOUM0NjYuMTE5IDI3My45ODggNDc1LjI0MiA0MTEgMzI4LjE4NiAzNTkuNTQ4QzI3MC4zNDUgMzM5LjMxIDI2MC41NCAzNzkuMDQ1IDE5Mi4yOSAzNzYuMDkxQzEzMS4xNTkgMzczLjQ0NSAxMjYuNjggMjUzLjQyIDI0MC40MjYgMjA5Ljg0N0MzNjIuNTg5IDE2My4wNDkgMzA3LjU5OSAyNTAuNDU1IDI3My44MjQgMjQzLjQ0NlpNMzczLjA5NiAyNjguMTY1QzM0NC4xMTEgMjc1LjAwNyAzMzQuNjE5IDM0Ni45ODggMzY2LjYxOSAzNTYuMTUyQzQzMC43OTIgMzc0LjUzMSA0MjQuMjA0IDI1Ni4xIDM3My4wOTYgMjY4LjE2NVoiLz48L3N2Zz4=","theme":"light"},{"mimeType":"image/svg+xml","sizes":["any"],"src":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjEzNi45IDEyNi4yNSAzMTkuOCAzMTkuOCI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSIjZmZmIiBkPSJNMjczLjgyNCAyNDMuNDQ2QzE1MC42NCAyMTcuODgxIDE3My4wMDUgMzc2LjA5MSAyNTYuNjE5IDM0Ny40ODhDMzAyLjg2NyAzMzEuNjY3IDMxMy4wMTMgMjMyLjg1IDM4OS41NjYgMjUzLjQxOUM0NjYuMTE5IDI3My45ODggNDc1LjI0MiA0MTEgMzI4LjE4NiAzNTkuNTQ4QzI3MC4zNDUgMzM5LjMxIDI2MC41NCAzNzkuMDQ1IDE5Mi4yOSAzNzYuMDkxQzEzMS4xNTkgMzczLjQ0NSAxMjYuNjggMjUzLjQyIDI0MC40MjYgMjA5Ljg0N0MzNjIuNTg5IDE2My4wNDkgMzA3LjU5OSAyNTAuNDU1IDI3My44MjQgMjQzLjQ0NlpNMzczLjA5NiAyNjguMTY1QzM0NC4xMTEgMjc1LjAwNyAzMzQuNjE5IDM0Ni45ODggMzY2LjYxOSAzNTYuMTUyQzQzMC43OTIgMzc0LjUzMSA0MjQuMjA0IDI1Ni4xIDM3My4wOTYgMjY4LjE2NVoiLz48L3N2Zz4=","theme":"dark"}],"name":"codesign","version":"0.6.0","websiteUrl":"https://codesign.co"}}}}
{"at":"2026-11-22T23:38:45.881Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T23:38:45.881Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T23:38:45.885Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Edit the CE.SDK canvas by running JavaScript against the live CreativeEngine. The result becomes the session’s current state.\n\n⚠ BEFORE your first `edit`, read `skill://codesign/api/SKILL.md`, `skill://codesign/judge/SKILL.md` and `skill://codesign/judge/design-rules.md` in one message: the edit-code API and the rules a design is built to. Worked examples, and the lookup for a cryptic error (\"Known engine defects\"), are `skill://codesign/api/recipes.md`.\n\nThere is no `parent` and no revision id: `edit` always continues the design in front of you.\n\nEvery successful edit is kept — the product stores the design after each one, so there is nothing to save.\n\nReturns: the first content part is JSON `{ names? }` — every named block in the scene, which are exactly the strings `engine.design.findByName(name)` resolves in your NEXT edit. Name what you build and re-find it instead of matching copy. When the edit changed the scene, the result also ends with a downscaled render of the first page it changed — verify your work from it instead of spending a `preview` call. `preview` remains required for full-size judging (the judge loop) and multi-page review; set `render: false` to skip the image on read-only/diagnostic edits.\n\n`code` return contract (STRICT): return `undefined` (no message back), `{ type: \"text\", text }`, `{ type: \"image\", data: \"<base64>\", mimeType }`, or an array of those. Anything else (raw strings, Blobs, plain objects) is rejected.\n\nDIALECT (enforced): edit code uses `engine.design` only — scene, pages, props, text, variables, spot colours, transitions. Code that reaches engine.block/scene/variable/editor/asset/event is rejected before execution with the equivalent calls.\n\n`code` scope: `engine.design`, plus `await findText(copy)` / `await findAllText(copy)` (async like every `engine.design` member) for reaching a block by its text. Use them instead of comparing text strings with `===` — the copy on the page routinely carries a trailing space or an NBSP (before a `€`/`%`), which is what makes hand-rolled lookups throw. Matching folds those space variants and trims; a miss lists the copy actually on the page.\n\nDirty-on-throw: if your `code` throws, nothing is checkpointed and the next `edit` reloads the session from its last good state. Do not catch-and-swallow errors that should propagate — let them throw so this safety contract kicks in.","inputSchema":{"additionalProperties":false,"properties":{"code":{"description":"Async JS body using `engine.design` — the whole edit API; EVERY member returns a Promise (await it): create({ type, name?, props?, children? }, { parent? }), setProps(id, props), getProps(id, select?) — see the api skill; its recipes.md shows the return contract.","type":"string"},"note":{"description":"Freeform descriptive text — what this edit accomplished. Metadata only; never load-bearing.","type":"string"},"render":{"description":"Default true: a mutating edit's result ends with a downscaled render of the canvas. Set false to skip the image on read-only or diagnostic edits where seeing it adds nothing.","type":"boolean"},"skills":{"description":"Optional: comma-separated names of the CoDesign skills you are following for this edit (e.g. \"create,api,judge\"). The names are sent with usage telemetry; the edit itself ignores them.","type":"string"}},"required":["code"],"type":"object"},"name":"edit"},{"annotations":{"readOnlyHint":true},"description":"Render blocks (almost always pages) to inline images so you can see the result.\n\n`blockIds` is a LIST, rendered in the order you give it: `[pageId]` for one page, `[a, b]` for a subset, or OMIT it entirely to preview every page of the design in document order.\n\nThere is nothing to address: this always renders the design you are working on. Its last state is loaded before rendering, so the ids always resolve against the right scene — never against a different design another agent may have loaded on a shared server.\n\nPreview several blocks at once when REVIEWING or capturing a finished design — a whole deck in one call, or just the pages a fix touched. While BUILDING a multi-page design, keep previewing each page right after you build it: batching there does not avoid the bugs, it only delays finding them.\n\nAnimated or video designs (any scene mode): pass `time` (seconds along the timeline of what is rendered — the page, since a block is previewed in place on it; 0 = first frame) to render any frame as a still — use `export format=mp4` for motion. `time` applies to every block in the call, and each timed preview (and every preview of a Video-mode scene) returns `{blockId, time, duration}` JSON alongside its image; `duration` is the scrubbable range.\n\nOutput is always PNG (lossless — thin lines render exactly). EACH block gets the full 0.25 megapixel budget, adjusted to its own aspect ratio — a square page renders 512×512, a 1:4 page 256×1024. There are no size or format knobs, and at most 10 blocks render per call.\n\nTo SEE SMALL TYPE as it is actually set — legal copy, a caption, a label — the simplest zoom is to pass THAT BLOCK'S id: `blockIds: [<textId>]` renders it on its page, framed, with context around it. No coordinates needed.\n\nFor a tighter or arbitrary crop, pass `region`: a rectangle `{x, y, width, height}` with ONE id in `blockIds`. It is measured from the top-left corner of that block's PAGE, in the design's units (the page's own width and height bound it) — the same numbers on page 1 and page 5, and NOT pixels of a preview image you already have. `globalBoundingBox` is in scene coordinates: for a block, subtract its page's `globalBoundingBox` x and y, or pass back the `region` a `preview({ blockIds: [<blockId>] })` reported. A rectangle that runs off the page is trimmed to it, one that misses it is moved onto it, and the result says `clampedToPage`. Every partial render reports the `region` it shows in these coordinates, ready to pass back. The crop is rendered into the same budget, so a smaller rectangle means bigger pixels, and it is never enlarged past the design's own resolution.\n\nPreviewing a block that is NOT a page renders it IN PLACE on its page — background and neighbours included — so you score what is actually on the page. `export` still produces the block alone when you need it with an alpha channel. For native-resolution certainty, `export` the page and open its `httpUrl`.\n\nTo look at an ASSET rather than the design — an image you just generated, one the customer uploaded, or one an asset search returned — pass `uri` instead: the `uri` (or `meta.thumbUri`) an earlier tool result in this session gave you, never one you assembled or found on the web. An image an asset source lists shows as its thumbnail; a stored one too large to show comes back downscaled when this deployment can shrink its format. Nothing is rendered and no design is touched; you simply see the picture.","inputSchema":{"additionalProperties":false,"properties":{"blockIds":{"description":"Blocks to render, in the order you want them back — almost always page ids, not the scene root. Omit it (or pass `[]`) to preview every page of the design in document order. At most 10 render per call.","items":{"type":"integer"},"type":"array"},"region":{"additionalProperties":false,"description":"Rectangle to render, in the design's units from the top-left corner of the page of the one id in `blockIds` (required) — {x: 0, y: 0} is that page's corner on every page; subtract the page's `globalBoundingBox` x/y from a block's. Off-page parts are trimmed and a rectangle that misses the page is moved onto it (`clampedToPage` in the result). Rendered into the same 0.25 MP budget, so a smaller rectangle reads bigger, up to the design's native resolution.","properties":{"height":{"description":"Greater than 0.","type":"number"},"width":{"description":"Greater than 0.","type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y","width","height"],"type":"object"},"time":{"description":"Playback time in seconds (any scene mode) along the timeline of what is rendered — the page a block sits on, since blocks are previewed in place (0 = first frame) — applied to every block in the call. Each video preview returns {blockId, time, duration} JSON alongside its image — duration is the scrubbable range.","minimum":0,"type":"number"},"uri":{"description":"Look at an ASSET instead of the design: the `uri` or `meta.thumbUri` an earlier tool result gave you (a generated, uploaded or imported image, or one an asset search returned). Cannot be combined with a non-empty `blockIds`.","type":"string"}},"required":[],"type":"object"},"name":"preview"},{"description":"Import a design FILE as a NEW design — a CE.SDK `.imgly` design file; a Photoshop (`.psd`/`.psb`), InDesign (`.idml`), PowerPoint (`.pptx`) or PDF file; a Lottie animation (`.json`/`.lottie`), which becomes a one-page video design with editable, keyframed layers; or a plain image or SVG, which becomes a one-page design sized to the image. To make a media file (image/font/video/audio) available for use INSIDE a design instead of becoming one: Use `asset_add` to bring it into the workspace, then apply it inside `edit`.\n\nSource: `{ url }` (http/https), `{ uri }` (a saved design — you get a copy of it — or a file you were given, or a template `asset_search` lists from an installed pack: the new design starts as that template), `{ demo }` (a design bundled with this server — ids: `\"cybernews\"`) or `{ path }` (absolute local file path).\n\nEvery import starts a NEW design, and you work on it from then on: the design you were on is left as it is. To keep working on a saved design itself rather than a copy, use `open` with its `uri`. With only a `title` and no `source` (`import({ title: 'Poster' })`), it starts an empty design: do that for every new design, before you name it or build it.\n\nReturns JSON `{ uri, title, format }` — the new design, saved after every change; to continue it later, `open` this `uri`. Foreign-format imports may add `warnings` (what did not survive — substituted fonts, unsupported features): treat them as your touch-up list — `preview` the pages, then repair with `edit`.","inputSchema":{"additionalProperties":false,"properties":{"source":{"additionalProperties":false,"description":"The design to load. Provide exactly one of `url` (http/https), `uri` (a saved design), `demo` (a bundled demo design), `path` (absolute local file path; Local only).","properties":{"demo":{"description":"Id of a demo design bundled with this server — a finished design to demonstrate on, with no file and no build required.","enum":["cybernews"],"type":"string"},"path":{"description":"Absolute local file path of the design file. Local-only.","type":"string"},"uri":{"description":"The `uri` of a saved design (you get a new design that starts as a copy of it), of a template `asset_search` lists or of a file you were given.","type":"string"},"url":{"description":"http(s) URL of the design file to load.","type":"string"}},"type":"object"},"title":{"description":"Display name for the design once you save it. Defaults to the source file's basename. Without a `source`, starts an empty design under it.","type":"string"}},"required":[],"type":"object"},"name":"import"},{"description":"Work on a saved design itself: every later edit is saved into it. Pass the `uri` an `import` or `designs` gave you, verbatim. To start from a copy instead, `import` its `uri`. Returns `{ uri, title }`.","inputSchema":{"additionalProperties":false,"properties":{"uri":{"description":"The design to work on.","type":"string"}},"required":["uri"],"type":"object"},"name":"open"},{"description":"Export the design you are working on — `format` picks the deliverable: `pdf` (print PDF), `png`/`jpeg`/`webp` (image), `svg` (vector SVG), `pdfx` (print-ready PDF/X), `html` (responsive HTML5), `idml` (Adobe InDesign), `psd` (layered PSD), `mp4` (video), `wav`/`m4a` (audio), `imgly` (editable design file). Renders `blockId` — or the whole document when `blockId` is omitted.\n\nYour edits are saved to the design as you make them (the viewer shows it), so there is nothing to save: every format is a copy for the person — a pdf to print, a png to post, `imgly` the editable design file with its images.\n\nReturns JSON `{ uri, httpUrl, bytes, format }` (plus `path` when you pass `outPath`). `uri` is the durable handle — treat it as opaque and pass it back verbatim where a URI is wanted. `httpUrl` is a fetch link tied to this process — fetch it to download the bytes to disk, or hand it to the user.\n\n`outPath` (optional, absolute path including the filename): ALSO write the artifact to that local path — the workspace copy is still written, and the response then carries `path`. Use it when the file is wanted on disk, and always when your environment cannot fetch localhost URLs (sandboxed harnesses, e.g. Claude Cowork — target your session's outputs folder there).\n\n`format=svg` is the engine's vector export: text is outlined into paths (renders identically everywhere, but is not editable text in the SVG), and raster images are embedded in the file at source resolution — an SVG of a photo-heavy design can be much larger than its source images.\n\n`format=imgly` writes a portable, self-contained `.imgly` design file (scene + all asset bytes bundled) — the inverse of `import`, and the only format that stays editable: a copy to move, back up or send. Whole-design only: `blockId` is not accepted. Because the archive inlines every referenced asset it is the heaviest call this server makes, and it REFUSES rather than ship a design whose fonts or images could not be loaded — retry it, do not ignore it.\n\n`format=pdfx` runs the print PDF through a PDF/X conversion: CMYK with an embedded ICC profile and PDF/X conformance markers, ready for a print shop. Tune it via the optional `pdfx` object — conformance standard (X-4 default / X-3 / X-1a), output profile (fogra39/gracol/srgb/custom), transparency flattening and its resolution, OutputIntent metadata. srgb is never PDF/X compliant. The result carries `warnings` when the file breaks its standard (each names the fix): relay them or re-export before calling the file print-ready. CMYK and spot colours, bleed and the print checklist: `skill://codesign/formats/print.md`.\n\n`format=html` renders ONE page (`blockId` required — pass a page id) to responsive HTML5. Default is a single self-contained `.html` (assets inlined; animated designs get a CDN GSAP player injected so the file plays as-is); `html: { assets: \"external\" }` delivers html + separate image/font files as one `.zip`.\n\n`format=mp4` renders the authored timeline of the block (typically a page) to an H.264 `mp4`; duration and resolution come from the scene; frame rate is `fps` (default 30). Requires the native engine (the default). Long encodes report MCP progress notifications when the client sends a progressToken. The result also carries `duration` (seconds of video) and `audioDuration` (seconds of audio; absent when the mp4 has no audio track), both read from the encoded file — no need to probe it.\n\n`format=wav` / `format=m4a` renders the audio mix of a page (`blockId` required, a page id): every audio block and video-fill audio on it, over the page duration. `wav` is 48 kHz stereo 16-bit PCM, `m4a` is AAC. The result carries `duration` (seconds, read from the encoded file). To get one clip alone, export while it is the only audio on the page. Requires the native engine. Every clip sounds over exactly its own window (within a few ms), whatever its start and trim. `m4a` as a whole may sit ~35 ms late from AAC encoder priming, as in the mp4.","inputSchema":{"additionalProperties":false,"properties":{"bleed":{"description":"For `format=png`/`jpeg`/`webp` only (invalid with any other format). A page with print bleed renders trim + bleed by default; `false` renders it at its trim size. The design keeps its bleed.","type":"boolean"},"blockId":{"description":"The page to render; an image format takes any block. Omit to export the whole document: a multi-page PDF, or one composite image of all pages. Required for format=html/psd (pass a page id). Required for `format=mp4` (pass a page id). Required for `format=wav`/`m4a` (pass a page id).","type":"integer"},"format":{"description":"The deliverable: pdf → print PDF; png/jpeg/webp → image; svg → vector SVG; pdfx → print-ready PDF/X; html → HTML5 page; idml → Adobe InDesign document; psd → layered PSD; mp4 → video; wav/m4a → audio; imgly → editable design file.","enum":["pdf","png","jpeg","webp","svg","pdfx","html","idml","psd","mp4","wav","m4a","imgly"],"type":"string"},"fps":{"description":"Frames per second for `format=mp4` only (invalid with any other format), greater than 0. Default: the scene's `scene.frameRate`, which is 30 unless set. Common values: 24, 25, 30, 60.","maximum":120,"type":"number"},"height":{"description":"For `format=png`/`jpeg`/`webp` only: the image's height in px, scaled up or down; the aspect is kept, and with both the image fits inside them, never stretched. At most 65500 for jpeg and 16383 for webp. Default: the design's own size.","maximum":1000000,"minimum":1,"type":"integer"},"html":{"additionalProperties":false,"description":"Options for `format=html` only (invalid with any other format).","properties":{"assets":{"description":"embedded (default): one self-contained .html, assets inlined as data URLs — viewable anywhere as-is. external: html + separate image/font files, delivered as one .zip.","enum":["embedded","external"],"type":"string"}},"type":"object"},"outPath":{"description":"Absolute path (including filename) to ALSO write the artifact to — the workspace copy is still written, and the response then carries `path`. Use when you need the file on disk and cannot fetch localhost URLs (sandboxed harnesses).","type":"string"},"page":{"description":"The page to render by its position in the design, 0 for the first (the order of `engine.scene.getPages()`), instead of its `blockId`. Not with `blockId`, `imgly` or `idml`.","minimum":0,"type":"integer"},"pdfx":{"additionalProperties":false,"description":"Options for `format=pdfx` only (invalid with any other format). Omit entirely for sensible print defaults: PDF/X-4, fogra39, embedded ICC.","properties":{"embedICCProfile":{"description":"Default true. false → plain CMYK (or RGB) PDF with no embedded ICC profile, OutputIntent, or PDF/X markers — for prepress pipelines that apply their own profile.","type":"boolean"},"flattenResolution":{"description":"Dpi of flattened pages, default 300 (PDF/X-1a, and PDF/X-3 unless flattenTransparency is false).","maximum":65535,"minimum":1,"type":"number"},"flattenTransparency":{"description":"PDF/X-3 only (default true there): rasterize transparent content for strict compliance. false keeps transparency live — better fidelity, may not validate. Ignored on PDF/X-4; PDF/X-1a always flattens.","type":"boolean"},"nonPrinterProfile":{"description":"Output profile that is not a printer profile (srgb, a custom RGB one): keep (default) writes the file, not compliant; reject fails the export.","enum":["keep","reject"],"type":"string"},"outputCondition":{"description":"Overrides /OutputCondition — the human-readable printing-condition description (e.g. \"ISO Coated v2 (ECI)\"). Defaults from outputProfile.","type":"string"},"outputConditionIdentifier":{"description":"Overrides the PDF's /OutputConditionIdentifier — the REGISTERED printing-condition name preflight tools and print shops check (e.g. \"FOGRA39\", \"CGATS 21.2\"). Defaults from outputProfile; with a custom profile, your print shop tells you what to put here.","type":"string"},"outputProfile":{"description":"Target printing condition / ICC output profile. fogra39 (default) = ISO Coated v2 (ECI), European offset. gracol = GRACoL 2013 CRPC6, US commercial. srgb = keep RGB, for digital distribution — not PDF/X compliant. custom = supply the print shop's ICC file via profileUri.","enum":["fogra39","gracol","srgb","custom"],"type":"string"},"outputStandard":{"description":"PDF/X conformance target. PDF/X-4 (default) keeps live transparency. PDF/X-3 is the older PDF 1.4 standard — it flattens transparency by default and can rasterize gradients/alpha content. PDF/X-1a: CMYK and spot only (no srgb), always flattened.","enum":["PDF/X-4","PDF/X-3","PDF/X-1a"],"type":"string"},"profileUri":{"description":"Required with outputProfile=\"custom\" (invalid otherwise): an https:// URL or absolute local file path of the .icc profile to embed.","type":"string"},"title":{"description":"PDF document title. Defaults to the design's title.","type":"string"}},"type":"object"},"width":{"description":"For `format=png`/`jpeg`/`webp` only: the image's width in px, scaled up or down; the aspect is kept, and with both the image fits inside them, never stretched. At most 65500 for jpeg and 16383 for webp. Default: the design's own size.","maximum":1000000,"minimum":1,"type":"integer"}},"required":["format"],"type":"object"},"name":"export"},{"annotations":{"readOnlyHint":true},"description":"The saved designs you can `open` or `import` a copy of, newest first. The one you are working on is marked `current`. A row marked `unsaved` is work an earlier session left before it was saved: `open` it to continue.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"designs"},{"annotations":{"readOnlyHint":true},"description":"Record the verdict of a judge loop you have COMPLETED for the design you are working on — the final step of the `judge` skill. Recording is a claim about work already done: never call this without having scored the axes against actual `preview` renders of the design in its current state.\n\n`verdict: 'pass'` — every applicable axis scored ≥ 8; the design may be delivered. `verdict: 'fail'` — you are stopping with an axis below 8 (e.g. the user cut remediation short); the failure stays on record.\n\nThere is no `revision`: the verdict covers the session as it stands when you record it, and ANY later `edit` or `import` clears it — so judge last, and re-judge after every further change. `export` checks it: delivering or saving a design the latest verdict does not cover adds a reminder to its result.","inputSchema":{"additionalProperties":false,"properties":{"verdict":{"description":"'pass' when every applicable axis scored ≥ 8, 'fail' when stopping below the gate.","enum":["pass","fail"],"type":"string"}},"required":["verdict"],"type":"object"},"name":"scorecard"},{"description":"Give a design its title — the name `designs` lists it by.\n\nWithout `uri`, renames the design you are working on: if it is saved already, it is renamed now, and otherwise its first change saves it under the title. With `uri` (from `designs` or `import`), renames that saved design.\n\nReturns JSON `{ uri, title, previousTitle }`, or `{ title }` while the design has no change saved yet. Nothing in the design changes.","inputSchema":{"additionalProperties":false,"properties":{"title":{"description":"The new title.","type":"string"},"uri":{"description":"A saved design to rename. Omit it to rename the design you are working on.","type":"string"}},"required":["title"],"type":"object"},"name":"rename"},{"annotations":{"readOnlyHint":true},"description":"Register the brief's ACCEPTANCE CHECKLIST — the machine-checkable claims that must hold before the work counts as done. Do this right after intake, before the first edit: extract from the brief every required output file, every string of approved copy that must land verbatim, and note the constraints only you can check. Skip it only when the brief fixes no outputs or copy.\n\nItem kinds:\n- { kind: 'output', path } — a file that must exist when the work is delivered (absolute path, e.g. every variant the brief orders exported with `outPath`).\n- { kind: 'copy', text } — approved copy that must appear VERBATIM in the design's text (whitespace variants are folded; wording, case and punctuation are exact).\n- { kind: 'note', text } — a self-check the server cannot verify. Kept on record; never machine-checked.\n\nEvery `export` checks the list against the design and the disk and names the unmet items — treat one exactly like a failing test. Calling `checklist` again REPLACES the whole list; it lasts for this conversation.\n\nReturns `{ itemCount }`, or `{ items }` (the current list) when called without `items`.","inputSchema":{"additionalProperties":false,"properties":{"items":{"description":"The full checklist (at most 64 items); replaces the current one. Omit to read the current list.","items":{"additionalProperties":false,"properties":{"kind":{"enum":["output","copy","note"],"type":"string"},"path":{"type":"string"},"text":{"type":"string"}},"required":["kind"],"type":"object"},"type":"array"}},"type":"object"},"name":"checklist"},{"annotations":{"readOnlyHint":true},"description":"Get a URL the human can open to view and edit the design you are working on in CE.SDK. Returns the design's stable URL — it follows every change, so print it ONCE and don't re-emit a fresh URL every turn. The page is a full editor; when the human clicks 'Save', their edits land in the same design file. A new design is viewable after its first change. The editor opens in the mode the human last chose for this design, else 'motion' (timeline) when the design has animation, video, audio or timed blocks and 'design' otherwise; pass `mode` to force one. The human can change the design there and save it: your next call says so, and you `preview` their version before you continue.","inputSchema":{"additionalProperties":false,"properties":{"mode":{"description":"Editor mode to open in: 'motion' shows the timeline and clip tools, 'design' the still-design editor.","enum":["design","motion"],"type":"string"}},"required":[],"type":"object"},"name":"view"},{"annotations":{"readOnlyHint":true},"description":"Search every asset source of this server's engine, live; earlier sources rank first. Read-only — never creates a revision.\n\nReturns JSON `{ sources: [{ source, description, total, nextPage, failed, assets }] }`; each asset has `id`, `label`, `mimeType`, `uri` (a style: none) and `groups`, an image its `width` and `height` in pixels, and a typeface asset (e.g. from the `ly.img.gfonts` Google Fonts source) a compact `typeface: { name, weights, styles }`. A source's `description` says what it holds. Typefaces: `mimeType: ['application/ubq-typeface']`.\n\nThe `ly.img.workspace.styles` source is the workspace's saved styles (brand kits), a pack's among them: when the user names a style or brand (\"in our Acme style\"), find it here by name or id and apply it with the `brand` skill.\n\nThe `ly.img.workspace.images` source is this workspace's own store: every image the agent generated or imported AND every image the human uploaded in the browser editor, newest first. Uploads carry their original filename as `label` (the human will refer to it — \"use logo-final.png\" — so search that name) and `groups: [\"uploads\"]`. \"The image the user just uploaded\" = the first asset in the `uploads` group.\n\n⚠ Asset sources are deployment configuration — where their content lives (IMG.LY CDN, a customer host) is the server's business. NEVER fetch asset manifests (`content.json`) or hardcode `cdn.img.ly` URLs yourself; this tool and the uris it returns are the only correct path. A source this tool does not name is not available on this server — say so instead of working around it.\n\nTo USE a result, apply it inside `edit` code — either:\n(A) new block: `await engine.design.create({ type: 'graphic', props: { shape: { type: 'rect' }, fill: { type: 'image', uri }, width, height, contentFill: { mode: 'Cover' } } }, { parent: page })` with the asset's `uri` — keep `width`:`height` at the asset's aspect, or let `Cover` crop a photo; a logo or other mark takes `{ mode: 'Contain' }`; audio: `{ type: 'audio', props: { audio: { fileURI: uri } } }`;\n(B) existing block: `await engine.design.setProps(blockId, { fill: { type: 'image', uri }, contentFill: { mode: 'Cover' } })` with the asset's `uri` — `Cover` fills the frame and crops what does not fit, right for a photo; a logo or mark takes `{ mode: 'Contain' }`, or a frame at its `width`:`height`, so it is never cut.\n(C) fonts: set the family BY NAME inside `edit` — `text: { font: { family: name, weight: 'normal' } }` in `engine.design.create` or `engine.design.setProps`; the edit API finds the family and loads the weight. Never copy font URIs out of this tool into edit code.\n\nA photo has to show what the design says it shows. When no result fits the subject, say so, then use the person's own image or one you can generate if this host makes images; failing both, a neutral placeholder (a solid shape in a palette colour, not an empty image frame), never an unrelated photo.","inputSchema":{"additionalProperties":false,"properties":{"groups":{"description":"Only assets in one of these groups.","items":{"type":"string"},"type":"array"},"mimeType":{"description":"Only these types: exact (`image/png`) or a family (`image/*`).","items":{"type":"string"},"type":"array"},"page":{"description":"Default 0.","minimum":0,"type":"integer"},"perPage":{"description":"Per source. Default 20.","maximum":50,"minimum":1,"type":"integer"},"query":{"description":"Words to find in labels and tags. Omit to list.","type":"string"},"source":{"description":"Only this source, as a result named it.","type":"string"}},"type":"object"},"name":"asset_search"},{"description":"Add a local media file (image, font, video, or audio) to the workspace so it can be used in a design. Copies the file bytes into the content-addressed asset store at `assets/<sha>.<ext>`. The bring-your-own arm of the asset family: `asset_search` finds an existing asset, `asset_generate` makes one, `asset_add` takes one off your disk — all three return a `workspace://` uri to embed in `edit`. (To turn a design FILE into a new design, use `import`.)\n\nReturns JSON: `{ uri, httpUrl, mimeType, kind, width?, height?, bytes, note? }`; an image has `width` and `height` in pixels — frame it at that aspect unless you mean to crop it (a logo never). `uri` (a `workspace://` URI) is the durable handle — embed it in a subsequent `edit` (image/video fill or audio `fileURI`; for a font, as both `text.font: { typeface, uri }`'s uri and `typeface.fonts[].uri`), NEVER `httpUrl` and NEVER the original `file://` path, so the design stays loadable after a restart or rewind. `httpUrl` is a fetch link for opening the asset now.\n\nFiles are classified by content (magic bytes) first, extension second: a misnamed file is stored under its actual type, and `note` explains any correction, rescue, or unverifiable content.\n\nMake-available only: it never edits a scene and never creates a revision — do the placement in `edit`.\n\nSource: `{ path }` — an absolute path to a file the server can read.","inputSchema":{"additionalProperties":false,"properties":{"source":{"additionalProperties":false,"properties":{"path":{"description":"Absolute path to a local media file the server can read (image/font/video/audio).","type":"string"}},"type":"object"}},"required":["source"],"type":"object"},"name":"asset_add"},{"description":"Unavailable until you sign in with `login` (free IMG.LY account); once signed in, it works.\n\nGenerate images, video, speech, music and sound effects — and transcribe speech — via the AI gateway.\n\nCall with NO arguments first: returns the curated model catalog, every entry tagged with its `capability` (text2image, image2image, text2video, image2video, text2speech, speech2text, …). Filter with `capability`; `source: \"all\"` (together with a `capability`) adds the provider models — e.g. music and sound effects under `text2audio`.\n\nThen call with `model` + `prompt` (+ optional `format` aspect like \"16:9\"). Model-specific inputs (duration, voice, lyrics, an input file…) go in `params`, sent to the model verbatim under the model's own field names — `model` + `schema: true` returns the fields a model takes. A `uri` inside `params` that an earlier tool result gave you is uploaded for the model first (e.g. `{ audio_url: '<id>' }` to transcribe).\n\nFor image-to-image, pass `image_uris` with uris an earlier tool result gave you. Never assemble one by hand.\n\nReturns ONE JSON part: the asset, in the engine's own asset shape — `{ id, meta: { uri, mimeType, kind, duration?, width?, height?, thumbUri? } }`, the same objects `asset_search` returns, plus `cost` (credits) when the gateway reports it. `id` is the durable handle: embed it in `edit` code (image or video fill, audio block) and pass it back here as an `image_uris` entry. It equals `meta.uri`. `meta.kind` is `image`, `video`, `audio` or `file`; `meta.duration` (seconds, as a string) is present for audio/video when the file header states it. Any other result that is data rather than a file comes back as `{ output }`, verbatim.\n\nTranscription (speech2text, e.g. `elevenlabs/scribe-v2`): put the recording's uri in the model's audio field (`audio_url`) — audio OR video of any length; the audio is extracted and long recordings are split for you. The result is `{ transcriptUri, duration, language?, wordCount, lines }`: `lines` holds one `[mm:ss.s–mm:ss.s] sentence` per sentence (times in the source), enough to pick moments by; the word timings stay in the `transcriptUri` asset — read them inside `edit` with `engine.design.readTranscript(transcriptUri, { from, to })` (words whose start lies in [from, to) seconds), e.g. to build captions.\n\nNO PICTURE COMES BACK. To see what was generated, place it and look at the render `edit` returns: `await engine.design.setProps(blockId, { fill: { type: 'image', uri: '<id>' } })`, or `await engine.design.create({ type: 'graphic', props: { width: 400, height: 400, shape: { type: 'rect' }, fill: { type: 'image', uri: '<id>' } } }, { parent: page })`. That shows it in the layout, which is what you have to judge anyway. Do not assume a generation is good — look before you build on it.\n\nMulti-output models (layerize-class: decompose an input image into layers) add an `assets` array of the same objects, in stack order (residual background first, then cutout layers). The top-level fields ARE `assets[0]`. Single-output results carry no `assets` array. Any non-image output the model produced is passed through VERBATIM under `metadata` — read it, it binds semantics to the assets.\n\nRequires a free IMG.LY sign-in (the `login` tool); all other design tools work without an account.","inputSchema":{"additionalProperties":false,"properties":{"capability":{"description":"Catalog filter, e.g. \"text2audio\", \"text2speech\", \"speech2text\", \"text2video\", \"image2video\".","type":"string"},"format":{"description":"Aspect ratio, e.g. \"16:9\" or \"1:1\".","type":"string"},"image_uris":{"description":"Uris returned by `import` or an earlier `asset_generate`, used as inputs (image-to-image models).","items":{"type":"string"},"type":"array"},"model":{"description":"Model id from the catalog (call with no arguments to list). Required to generate or to read a schema.","type":"string"},"params":{"additionalProperties":true,"description":"Model-specific inputs sent verbatim (e.g. { \"voice\": \"Aria\" }, { \"duration\": 8 }). Asset uris inside are uploaded first.","type":"object"},"prompt":{"description":"What to generate. Required with `model` unless the model takes its input through `params`.","type":"string"},"schema":{"description":"With `model`: return that model's input schema instead of generating.","type":"boolean"},"source":{"description":"Catalog source: \"catalog\" (default, curated) or \"all\" (adds the provider models; needs `capability`).","enum":["catalog","all"],"type":"string"}},"type":"object"},"name":"asset_generate"},{"annotations":{"readOnlyHint":true},"description":"Inspect this codesign MCP server: `status` (default) reports what is running (build id, CE.SDK engine version, non-secret config); `summary` returns a bounded digest of recent activity (counts, recent errors, slowest calls); `open` returns a clickable local viewer URL with a Download-ZIP button to send diagnostics to IMG.LY.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"status (default) | summary | open","enum":["status","summary","open"],"type":"string"}},"type":"object"},"name":"diagnostics"},{"description":"Sign in with your IMG.LY account (opens the system browser). The session saves automatically once the user finishes in the browser; call login again anytime to confirm — safe to repeat, it does not restart the flow or invalidate the open link. Pass switch_account=true to sign in as a different user.","inputSchema":{"additionalProperties":false,"properties":{"switch_account":{"description":"Force a fresh sign-in screen even if a session exists.","type":"boolean"}},"type":"object"},"name":"login"},{"description":"Sign out of your IMG.LY account (revokes the session and clears local credentials).","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"logout"},{"annotations":{"readOnlyHint":true},"description":"Read a CoDesign skill file by its `skill://codesign/<name>/<path>` URI; returns the same text as the MCP resource. Use it only when your host can't read MCP resources — otherwise read the resource directly.","inputSchema":{"additionalProperties":false,"properties":{"uri":{"description":"A skill URI, e.g. skill://codesign/api/SKILL.md.","type":"string"}},"required":["uri"],"type":"object"},"name":"read_skill_resource"}]}}}
