Skip to main content

1. 生成并预览屏幕

最常见的工作流:生成一个屏幕(同时创建文件),然后查看结果。
省略 fileId 会自动创建一个新文件。传递现有的 fileId 可将屏幕添加到该文件。 向您的 AI 助手提示:
Generate a Flowstep design: a mobile sign-in screen for a developer tool with email/password and a Google SSO button in dark theme, then show me the image.

2. 可视化 React 组件

上传 .jsx.tsx 文件作为附件,并请求 Flowstep 生成匹配的设计。Flowstep 读取源代码并生成屏幕 — 无需运行应用。
向您的 AI 助手提示:
Read src/components/settings/ApiKeys.tsx, upload it as an attachment, and generate a Flowstep screen that matches the component layout. Show me the rendered image.

3. 在 MCP 生成的屏幕上迭代

edit-designregenerate-design 需要设计上下文,该上下文仅存在于使用 designs 数组生成的屏幕上。对于没有该数组的屏幕,解决方法是将屏幕呈现为附件并使用图像调用 create-new-design
对于具有设计上下文的屏幕,直接调用 edit-design,在 message 中包含变更,在 targets 中包含屏幕。

4. 将屏幕扩展为完整流程

向现有设计添加后续屏幕。
重复第 2 步,使用 operationVariant: "error_state""empty_state" 来添加边界情况屏幕。
operationVariantexpand-design 的必需参数。基础屏幕也必须使用 designs 数组(设计上下文)生成 — 对于没有它的屏幕,请使用示例 3 中的附件解决方法。

5. 批处理前审计配额

在启动多个生成之前检查剩余容量。
如果 daily 较低,请在 00:00 UTC 后(重置时)安排批处理。