sync
Triggers a manual flomo sync: pull current server notes and tags to your local app and push pending local changes, returning sync statistics. Reports SYNCING if a sync is already running.
Instructions
手动触发同步(等同点击 flomo 界面左下角同步按钮):拉取服务端最新笔记/标签到本地并推送本地待同步修改,返回同步统计。已有同步在进行中时返回 code=SYNCING
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": "sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| synced | Yes | true=本次调用完成一次同步;false=已有同步在进行中(code=SYNCING) | |
| message | Yes | flomo 返回的同步结果消息 | |
| duration_ms | Yes | 同步耗时(毫秒);SYNCING 时为 null | |
| tag_updated | Yes | 本次同步更新的标签数 | |
| pull_success | Yes | 拉取服务端数据是否成功;SYNCING 时为 null | |
| push_success | Yes | 推送本地待同步修改是否成功;SYNCING 时为 null | |
| updated_memo_count | Yes | 本次同步更新的笔记数 |