用途:在 Pencil 的 .pen 文件中初始化 uView 2.x 设计令牌,并生成 uView 2.x 组件总览画板。仅当用户明确同时提到 Pencil 与 uView 2.x(非 uView Pro),或提到 uView 专属组件(Button、Cell、Tabs、Navbar),或由编排技能 pencil-ui-designer 路由初始化请求时使用。
主要能力:输出 PENCIL_PLAN,由 Agent 依次调用 Pencil MCP 工具:open_document、set_variables、batch_design,可选 get_screenshot。第一步用 mcp__pencil__set_variables 注册令牌,如 u-type-primary #3c9cff、u-type-success #5ac725、u-type-warning #f9ae3d、u-type-error #f56c6c、u-type-info #909399、u-main-color #303133、u-content-color #606266、u-tips-color #909399、u-border-color #e4e7ed、u-radius 4px、u-font-size-base 14px(28rpx)。第二步用 mcp__pencil__batch_design 创建 Components Overview 画板,按基础、表单、数据、反馈、布局、导航分组列出组件。
使用方式:遵循 .pen 文件 schema;set_variables 默认 replace: false,除非要求完全重置;画板使用 Auto Layout;每次 batch_design 最多 25 个操作,超出按分类拆分。
限制:令牌值需对照 uView 2.x 官方文档核验,与 uView Pro 区分;资料未提供具体收费、价格与平台信息。参考文件包括 references/contract.md、official.md、examples.md、components.md。