feat: layer docs
This commit is contained in:
@@ -144,12 +144,12 @@ async function mcpServeAction(host: string, options: MCPOptions) {
|
||||
description: 'Deck 配置',
|
||||
properties: {
|
||||
size: { type: 'string', description: '卡牌尺寸,格式 "宽 x 高"' },
|
||||
grid: { type: 'string', description: '网格布局,格式 "列 x 行"' },
|
||||
grid: { type: 'string', description: '网格布局,格式 "列 x 行",表示卡牌排版区域分成多少行多少列,用于显示字段。默认使用5x8。' },
|
||||
bleed: { type: 'number', description: '出血边距(mm)' },
|
||||
padding: { type: 'number', description: '内边距(mm)' },
|
||||
shape: { type: 'string', enum: ['rectangle', 'circle', 'hex', 'diamond'] },
|
||||
layers: { type: 'string', description: '正面图层配置' },
|
||||
back_layers: { type: 'string', description: '背面图层配置' },
|
||||
layers: { type: 'string', description: '字段的显示图层配置。如`title:1,1-5,1f8n body:1,3-5,8f3n`表示将title字段的内容,显示在第1列1行到第5列1行的区域,8mm字体,上侧朝向北,body覆盖1列3行到5列行,3mm字体,上侧朝向北。通常希望重要的辨识字段放在左侧,如`rank:1,1-1,1f6 suit:1,2-1,2f6`。' },
|
||||
back_layers: { type: 'string', description: '背面显示图层配置,与正面类似' },
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -183,7 +183,7 @@ async function mcpServeAction(host: string, options: MCPOptions) {
|
||||
description: '卡牌数据(单张或数组)',
|
||||
items: {
|
||||
type: 'object',
|
||||
additionalProperties: { type: 'string' },
|
||||
additionalProperties: { type: 'string', description: "字段内容可以使用markdown语法。使用:[attack]来表示名为attack的图标。使用{{prop}}来引用另一个字段,或者frontmatter里的内容。" },
|
||||
},
|
||||
},
|
||||
label: {
|
||||
|
||||
Reference in New Issue
Block a user