delete
Delete a page (pg_ prefix, cascades to artboards) or artboard (ab_ prefix) by ID. Returns a warning if the target is referenced by document screenshots.
Instructions
按 id 删除页面(pg_ 前缀,级联删画板)或画板(ab_ 前缀)。若目标被某文档版本的截图引用,返回中带 warning。刷新已打开的画布标签即可看到移除结果
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"targetId": "<targetId>"
},
"name": "delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | 覆盖默认工作目录(项目所在父目录);相对路径按当前工作目录解析;缺省用 PROTOFLOW_HOME 或启动时的 cwd | |
| targetId | Yes | ||
| projectId | Yes | 项目 id(同时也是项目文件夹名) |