getnote-note
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegetnote-note Skill
getnote-note Skill
Save, list, view, update, and delete notes in Get笔记.
在Get笔记中保存、列出、查看、更新和删除笔记。
Prerequisites
前置要求
- CLI installed and authenticated (
getnoteshould show "Authenticated")getnote auth status
- 已安装CLI并完成身份认证(执行
getnote应显示"Authenticated")getnote auth status
Commands
命令
Save a note
保存笔记
getnote save <url|text|image_path> [--title <title>] [--tag <tag>]...| Flag | Description |
|---|---|
| Optional title |
| Tag to apply; may be repeated |
- URL (or
http://) → link note (async, auto-polls until done)https:// - Local image path → image note (async, auto-polls until done)
- Otherwise → text note (sync)
bash
getnote save https://example.com --title "Great article"
getnote save "Remember to review the docs" --tag work --tag important
getnote save ./screenshot.png --title "Design mockup"In mode, silently polls and returns the final note JSON (including , /summary, , , ).
-o jsontitlecontentnote_typetagscreated_atgetnote save <url|text|image_path> [--title <title>] [--tag <tag>]...| 参数 | 说明 |
|---|---|
| 可选标题 |
| 要添加的标签,可重复使用 |
- 输入为或
http://开头的URL → 链接笔记(异步处理,自动轮询直到完成)https:// - 输入为本地图片路径 → 图片笔记(异步处理,自动轮询直到完成)
- 其他输入 → 文本笔记(同步处理)
bash
getnote save https://example.com --title "Great article"
getnote save "Remember to review the docs" --tag work --tag important
getnote save ./screenshot.png --title "Design mockup"在模式下,会静默轮询并返回最终的笔记JSON(包含、/摘要、、、字段)。
-o jsontitlecontentnote_typetagscreated_atTrack save task
查询保存任务进度
getnote task <task_id>Manually check progress of an async save task.
bash
getnote task task_xyz789 -o jsonReturns ( / / / ) and when done.
statuspendingprocessingsuccessfailednote_idgetnote task <task_id>手动检查异步保存任务的进度。
bash
getnote task task_xyz789 -o json返回任务(待处理 / 处理中 / 成功 / 失败),任务完成时会返回。
statuspendingprocessingsuccessfailednote_idList recent notes
列出最近的笔记
getnote notes [--since-id <id>] [--all]Returns 20 notes per page (fixed). No flag.
--limit| Flag | Description |
|---|---|
| Pagination cursor (last note ID seen) |
| Fetch all notes (auto-paginate, streams output) |
bash
getnote notes
getnote notes --all
getnote notes --since-id 1234567890
getnote notes -o jsonNote types: / / / / / / / / /
plain_textimg_textlinkaudiomeetinglocal_audiointernal_recordclass_audiorecorder_audiorecorder_flash_audiogetnote notes [--since-id <id>] [--all]默认每页返回20条笔记(固定值),无参数。
--limit| 参数 | 说明 |
|---|---|
| 分页游标(上次查询到的最后一条笔记ID) |
| 拉取所有笔记(自动分页,流式输出) |
bash
getnote notes
getnote notes --all
getnote notes --since-id 1234567890
getnote notes -o json笔记类型: / / / / / / / / /
plain_textimg_textlinkaudiomeetinglocal_audiointernal_recordclass_audiorecorder_audiorecorder_flash_audioGet note details
获取笔记详情
getnote note <id> [--field <field>]Returns full note including content, tags, attachments. Use to extract a single value.
--field | Description |
|---|---|
| Note ID |
| Title |
| Content / AI summary |
| Note type |
| Creation time |
| Last updated time |
| Source URL (link notes) |
| Excerpt |
bash
getnote note 1234567890
getnote note 1234567890 --field content
getnote note 1234567890 --field url
getnote note 1234567890 -o jsongetnote note <id> [--field <field>]返回完整的笔记信息,包括内容、标签、附件。使用参数可以提取单个字段的值。
--field可传入的 | 说明 |
|---|---|
| 笔记ID |
| 标题 |
| 内容 / AI摘要 |
| 笔记类型 |
| 创建时间 |
| 最后更新时间 |
| 来源URL(仅链接笔记有该字段) |
| 摘要 |
bash
getnote note 1234567890
getnote note 1234567890 --field content
getnote note 1234567890 --field url
getnote note 1234567890 -o jsonUpdate a note
更新笔记
getnote note update <id> [--title <title>] [--content <content>] [--tag <tags>]| Flag | Description |
|---|---|
| New title |
| New content (plain_text notes only) |
| Comma-separated tags — replaces all existing tags |
bash
getnote note update 1234567890 --title "Updated title"
getnote note update 1234567890 --tag "work,important"⚠️replaces all tags. For partial tag changes use--tag. ⚠️ Content update only works ongetnote tag add/removenotes.plain_text
getnote note update <id> [--title <title>] [--content <content>] [--tag <tags>]| 参数 | 说明 |
|---|---|
| 新标题 |
| 新内容(仅支持plain_text类型笔记) |
| 逗号分隔的标签列表 — 会覆盖所有现有标签 |
bash
getnote note update 1234567890 --title "Updated title"
getnote note update 1234567890 --tag "work,important"⚠️会覆盖所有已有标签。如果需要局部修改标签请使用--tag命令。 ⚠️ 仅支持更新getnote tag add/remove类型笔记的内容。plain_text
Delete a note
删除笔记
getnote note delete <id> [-y]Moves note to trash.
bash
getnote note delete 1234567890 -ygetnote note delete <id> [-y]将笔记移动到回收站。
bash
getnote note delete 1234567890 -yAgent Usage Notes
Agent使用注意事项
- Use when parsing responses programmatically.
-o json - All JSON responses follow structure, except:
{"success":true,"data":{...}}- (text): returns
savedirectly{"note_id":"..."} - (link/image): returns
save{"data":{"tasks":[{"task_id":"..."}],...}} - : returns
task{"success":true,"data":{"status":"...","note_id":"..."}}
- list returns 20 per page (no
notes); paginate with--limit.--since-id - Note IDs are int64 — always handle as strings to avoid precision loss in JavaScript.
- Exit code = success; non-zero = error. Error details go to stderr.
0
- 编程解析响应时请使用参数。
-o json - 所有JSON响应都遵循结构,以下情况除外:
{"success":true,"data":{...}}- 保存文本笔记:直接返回
{"note_id":"..."} - 保存链接/图片笔记:返回
{"data":{"tasks":[{"task_id":"..."}],...}} - 查询任务:返回
{"success":true,"data":{"status":"...","note_id":"..."}}
- 保存文本笔记:直接返回
- 笔记列表每次返回20条/页(无参数);可通过
--limit参数分页。--since-id - 笔记ID为int64类型 — 请始终作为字符串处理,避免在JavaScript中出现精度丢失问题。
- 退出码表示操作成功;非0表示出错,错误详情会输出到stderr。
0