tx_add
Record an income, expense, or account transfer with account and amount; missing accounts, categories, members, merchants, or projects are created by name.
Instructions
记一笔收支或转账。account 必填;category/type/amount 按需。账户、分类、成员、商家、项目不存在时按名自动创建。userId 可选(默认 default)。
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>",
"amount": "<amount>"
},
"name": "tx_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | 日期 YYYY-MM-DD,也可传 2026-11-16T14:32:05 带时分秒;默认当前时间 | |
| tags | No | ||
| time | No | 时分秒 HH:MM:SS,配合 date 使用 | |
| type | No | INCOME / EXPENSE / TRANSFER,默认 EXPENSE | |
| amount | Yes | 金额(正数) | |
| member | No | 成员名 | |
| userId | No | 用户隔离键,Octop 由登录用户注入,本地默认 default | |
| account | Yes | 账户名,如 "招商银行" | |
| project | No | 财务项目名 | |
| category | No | 分类名,如 "餐饮" | |
| merchant | No | 商家名 | |
| toAccount | No | 转账目标账户(TRANSFER 时) | |
| accountType | No | 账户类型 DEBIT_CARD/CREDIT_CARD/INVESTMENT/CASH/E_WALLET/OTHER | |
| description | No | ||
| toAccountType | No |