save_lend
save_lendAdd or update a lending record in the Yimu ledger, specifying borrow/lend type, amount, interest, dates, linked accounts, and remark. Upsert with primary key for updates.
Instructions
新增或更新借贷(POST /lend/addOrUpdateLend,upsert:带主键为更新)。entity 字段:lendId 主键;type 类型(借出/借入);number 金额;interest 利息;outTime/inTime 借出/归还时间;assetId 关联账户;repaymentAssetId 还款账户;remark 备注
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": {
"entity": "<entity>"
},
"name": "save_lend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | 借贷对象 |