get_production_kit(scope, theme?, layout?, orientation?)
制作入口。主视觉使用 key-visual,先确认 portrait(竖版)或 landscape(横版)。Onepage 属于 long-image,传 layout: "onepage";长图主题需明确 light/dark。
示例:get_production_kit({ scope: "key-visual", orientation: "portrait" })
get_material_assets(scope, kind?, id?)
先按分类读取轻量素材目录;选定素材 ID 后获取对应图片地址、尺寸与文件校验值。参考图片必须实际传入图生图工具。
示例:get_material_assets({ scope: "key-visual", kind: "past-kv" })
get_material_rules(scope)
读取当前物料的完整制作规则。主视觉包括文案提炼、参考选取、图生图、文字与 Logo 合成、确认及修改流程。
示例:get_material_rules({ scope: "key-visual" })
get_design_reference(scope, includeDrafts?)
读取当前规范和对应分支,scope 可选 global、key-visual、long-image、ppt。制作任务还须调用 get_production_kit。
示例:get_design_reference({ scope: "key-visual" })
get_visual_example(id)
历史方案预览兼容接口。主视觉参考图请通过 get_material_assets 按素材 ID 获取;旧人物海报制作入口已暂时隐藏。
get_brand_context(topic, includeUnconfirmed?)
按任务主题读取最小必要的品牌 Token 与规则。includeUnconfirmed 可选,默认 false。
topic:basic、assets、color、typography、logo、clearspace、layout、long-image、cobrand、motion、site、all
示例:get_brand_context({ topic: "color" })
get_token(path)
按完整路径读取一个品牌 Design Token,例如 brand.color.blue。
示例:get_token({ path: "brand.color.blue" })
get_rule(path)
读取品牌规则、组合方案或待确认项;支持 rules.*、recipes.* 与 unresolved.*。
示例:get_rule({ path: "rules.global.colorInheritance" })
get_rule_version()
读取当前品牌数据版本、更新时间、状态和来源手册,无需参数。
示例:get_rule_version({})