- Changed references from `knowledge` to `docs` in README and various files to reflect the new documentation structure. - Updated `.gitignore` to exclude the `docs` directory instead of `knowledge`. - Refactored `forge.config.ts` and `main.ts` to utilize the new `docs` directory for staging resources. - Introduced `stage-docs.mjs` script to manage the staging of documentation files. - Added new documentation files under `docs/`, including `INSTRUCTIONS.md`, brand guidelines, and design specifications. - Removed outdated `knowledge` related tests and files to streamline the codebase.
1.1 KiB
1.1 KiB
models
List available AI generation models and their per-model constraints (durations, aspect ratios, features), for generate.* asset declarations in a project module.
| MCP tool | models |
| CLI | dapi models [type] |
Input
| Field | Type | CLI | Description |
|---|---|---|---|
type |
"image" | "video" | "audio" |
[type] |
filter to one kind of model, image, video, or audio (default: all three) |
Use it to discover valid model ids and the per-model constraints (durations, aspect ratios, features) to set on an asset declaration (see jsx/generate.md). No tool generates: asset generation is declared in the project module and produced on mount.
Output
One JSON object:
{
models: Array<{
type: "image" | "video" | "audio";
id: string; // the model id to set on a generate.* declaration
name: string;
durations?: string[]; // video only, e.g. ["5s","10s"]
aspectRatios?: string[]; // video only
features?: Array<"start-frame" | "end-frame" | "audio">; // video only
}>;
}