bill_add
Record a bill in Yimubill cloud by account and category name, with optional discount, and automatically build the payload and correct balances.
Instructions
语义记一笔:账户/分类用名称,优惠写 discount;内部构造完整 payload 并自动校正余额
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": {
"account": "<account>",
"category": "<category>",
"amount": "<amount>"
},
"name": "bill_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book | No | ||
| tags | No | 标签名或 ID | |
| time | No | yyyy-MM-dd HH:mm,默认现在 | |
| amount | Yes | 实付金额(优惠后) | |
| remark | No | ||
| account | Yes | 账户名称 | |
| bill_id | No | 调用方生成,用于幂等 | |
| category | Yes | 分类名,支持「一级-二级」 | |
| currency | No | ||
| discount | No | 优惠金额,原价=amount+discount | |
| sub_category | No | ||
| reimbursement | No | ||
| not_into_total | No | ||
| not_into_budget | No |