upsert_page
Create a page if no ID is given, or rename an existing page if an ID is provided. Returns the page ID; refreshing the canvas sidebar displays the new or renamed page.
Instructions
无 id 创建页面,有 id 改名。返回页面 id。画布是项目结构的实时投影——已打开的画布标签刷新一下,新/改名页面就出现在左侧侧边栏,无需重新调用 render_canvas
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| dir | No | 覆盖默认工作目录(项目所在父目录);相对路径按当前工作目录解析;缺省用 PROTOFLOW_HOME 或启动时的 cwd | |
| name | Yes | ||
| projectId | Yes | 项目 id(同时也是项目文件夹名) |