feat(ai): integrate open-design capabilities (templates, media generation, visual QA)

This commit is contained in:
2026-05-15 11:07:44 -07:00
parent 4862c76a60
commit 299addfcad
3 changed files with 212 additions and 1 deletions

View File

@@ -1466,6 +1466,52 @@ After this returns, ALWAYS call apps_deploy { uuid } to regenerate the live Trae
},
},
{
name: "apps_templates_scaffold",
description:
"Scaffold a premium pre-built UI template directly into your project. Replaces empty Next.js setups with high-end boilerplate.",
parameters: {
type: "OBJECT",
properties: {
projectId: { type: "STRING" },
templateName: {
type: "STRING",
description:
"The template to scaffold. Available: 'dashboard', 'pitch-deck'",
enum: ["dashboard", "pitch-deck"],
},
},
required: ["projectId", "templateName"],
},
},
{
name: "generate_media",
description:
"Generate images or motion graphics and save them directly into the workspace to use in your UI.",
parameters: {
type: "OBJECT",
properties: {
projectId: { type: "STRING" },
prompt: {
type: "STRING",
description: "Detailed description of the media to generate",
},
type: {
type: "STRING",
enum: ["image", "video"],
description: "The type of media to generate",
},
outputPath: {
type: "STRING",
description:
"Where to save the file, e.g. /workspace/<slug>/public/hero.png",
},
},
required: ["projectId", "prompt", "type", "outputPath"],
},
},
// ── Path B: ship to production ─────────────────────────────────────────────
{