yzyx_add_record
Adds an investment ledger entry to a specified account with date, amount, comment, and transfer type; validates and deduplicates submissions to prevent duplicate records.
Instructions
【写操作】给投资记账账户记一笔流水(经 abook_record.py 子进程)。 account=账户 id;date=YYYY-MM-DD;amount=金额;comment=备注(与 date+comment+类型做去重,同笔重复提交会返回 skipped); channel=渠道名(多渠道账户必填,单金额账户留空); type=TRANSFER_IN 投入 / TRANSFER_OUT 转出 / TRANSFER_TO 转到 (TRANSFER_TO 需 to_account,可选 to_amount 到账金额)。 提交后脚本内读回验证,status=added 表示已核实落账。
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>",
"date": "<date>",
"amount": "<amount>",
"comment": "<comment>"
},
"name": "yzyx_add_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| type | No | TRANSFER_IN | |
| amount | Yes | ||
| account | Yes | ||
| channel | No | ||
| comment | Yes | ||
| to_amount | No | ||
| to_account | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |