kingdee_get_bill_template
Fetch a minimal savable bill model template for a Kingdee form_id, with correct field names and required entry fields, so AI can replace placeholders and build valid ERP documents.
Instructions
获取单据的「最小可保存 model 骨架」模板。
优先从金蝶元数据动态生成(QueryBusinessInfo → NeedReturnData),任意 form_id 都支持, 必填项以服务端元数据为准(源自 T_META_OBJECTTYPE + FKERNELXML),不依赖本地人工整理。 仅当元数据不可达时,才降级到本地预置模板(SAL_Quotation / SAL_SaleOrder / PUR_PurchaseOrder)。
返回该表单的正确字段名、必填项、分录必填字段组成的 model 示例,AI 只需替换占位符填业务数据。 占位符形如 <客户编码>,参照型字段形如 {"FNumber": "<BD_MATERIAL 编码>"}。 保存前建议再用 kingdee_validate_bill 校验。
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": {
"form_id": "<form_id>"
},
"name": "kingdee_get_bill_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |