Import a bank statement
import_statementA bank statement as CSV (text or base64) or a PDF with a text layer (base64). Lines are made in the month of their date; lines already there are skipped; Inbox receipts that match are sorted onto the new lines. Never a photo. Name the bank account the statement is from when the person has more than one; without one, the only account, or the only one in the file's currency, is used. Importing a file again into an account puts lines already there without an account onto it. Columns from the bank's detail view (merchant, original amount and currency, exchange rate, purchase date, reference, recipient, message; Swedish or English headers) are kept on each line, and importing such a file over lines already there adds them (enriched). Returns what was read, per month (with the account's opening and closing balance and whether its lines add up), the account, and the file's own completeness check when it has balances.
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": {
"name": "<name>"
},
"name": "import_statement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The file name, like statement-september.csv. | |
| text | No | ||
| month | No | Keep only this month's lines. | |
| base64 | No | ||
| bankAccount | No | A bank account's name (like "Swedbank SEK") or id; see list_bank_accounts. |