import_from_mylife
Imports historical financial data read-only from a MyLifeOS SQLite database into an independent MyLife Finance database, preventing reverse writes that could disrupt synchronization.
Instructions
从 MyLifeOS 数据库只读导入历史数据到独立库(不反向写回,避免破坏同步)。dbPath 可选。userId 决定归属用户。scope: all=全量;categories=仅导入账户(期初账户)+分类(期初分类),用于空库初始化。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "import_from_mylife"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | all(默认,全量)或 categories(仅期初账户+分类) | |
| dbPath | No | MyLifeOS 的 SQLite 路径 | |
| userId | No | 导入归属用户,默认 default |