- Enhanced the `present` function to support background track processing in the `media_segment` tool, allowing for real-time tracking and reporting of mask states. - Introduced a new `presentContext` function to manage the output of background tracks, including their progress and contact sheets. - Updated the `context` tool to report the status of ongoing background tracks, including their state and associated images. - Modified the `media_segment` tool to return tracking states and paths, improving integration with the `<mask>` component in the editor. - Enhanced documentation to clarify the new behavior and usage of background tracks in the context of media segmentation.
@diffusionstudio/dapi
The tool catalog behind dapi: one entry per tool with its name, description, and zod input and output schemas. The app registers the catalog with its MCP server, the renderer validates incoming calls against it, and the CLI derives its commands and help text from it, so the API is described exactly once.
import { catalog, toolByName, Time } from "@diffusionstudio/dapi";
import type { ToolArgs, ToolResult } from "@diffusionstudio/dapi";
const grab = toolByName("media_grab");
const args: ToolArgs<"media_grab"> = grab.input.parse({ path: "/clip.mp4", times: ["45f", "1:10"] });
The package is free of Node built-ins so the renderer can import it. The MCP URL the app serves on (MCP_URL) is exported too, for the CLI and the docs the app writes.
Design: docs/mcp-server.md.