11---
22name : getnote-note
3- version : 0.2 .0
3+ version : 0.3 .0
44description : Manage notes in Get笔记 via the getnote CLI
55---
66
77# getnote-note Skill
88
9- Manage individual notes in Get笔记 — save , list, get , update, delete, and track save tasks .
9+ Save , list, view , update, and delete notes in Get笔记 .
1010
1111## Prerequisites
1212
@@ -25,19 +25,17 @@ getnote save <url|text|image_path> [--title <title>] [--tag <tag>]...
2525| ` --title ` | Optional title |
2626| ` --tag ` | Tag to apply; may be repeated |
2727
28- - URL (` http:// ` or ` https:// ` ) → saved as link note
29- - Local image path → saved as image note
30- - Otherwise → saved as text note
28+ - URL (` http:// ` or ` https:// ` ) → link note (async, auto-polls until done)
29+ - Local image path → image note (async, auto-polls until done)
30+ - Otherwise → text note (sync)
3131
32- ** Examples:**
3332``` bash
3433getnote save https://example.com --title " Great article"
3534getnote save " Remember to review the docs" --tag work --tag important
3635getnote save ./screenshot.png --title " Design mockup"
3736```
3837
39- URL saves are async; the CLI auto-polls until done, then shows the result.
40- In ` -o json ` mode, silently polls and returns the final note JSON.
38+ In ` -o json ` mode, silently polls and returns the final note JSON (including ` title ` , ` content ` /summary, ` note_type ` , ` tags ` , ` created_at ` ).
4139
4240---
4341
@@ -47,35 +45,38 @@ In `-o json` mode, silently polls and returns the final note JSON.
4745getnote task <task_id>
4846```
4947
50- Check progress of an async save task (returned by ` save ` for URLs) .
48+ Manually check progress of an async save task.
5149
5250``` bash
53- getnote task task_xyz789
5451getnote task task_xyz789 -o json
5552```
5653
54+ Returns ` status ` (` pending ` / ` processing ` / ` success ` / ` failed ` ) and ` note_id ` when done.
55+
5756---
5857
5958### List recent notes
6059
6160```
62- getnote notes [--limit <n>] [-- since-id <id>] [--all]
61+ getnote notes [--since-id <id>] [--all]
6362```
6463
65- | Flag | Default | Description |
66- | ------| ---------| -------------|
67- | ` --limit ` | 20 | Notes per page |
68- | ` --since-id ` | — | Pagination cursor (last note ID seen) |
69- | ` --all ` | — | Fetch all notes (auto-paginate, streams output) |
64+ Returns 20 notes per page (fixed). No ` --limit ` flag.
65+
66+ | Flag | Description |
67+ | ------| -------------|
68+ | ` --since-id ` | Pagination cursor (last note ID seen) |
69+ | ` --all ` | Fetch all notes (auto-paginate, streams output) |
7070
7171``` bash
7272getnote notes
73- getnote notes --limit 5
7473getnote notes --all
7574getnote notes --since-id 1234567890
7675getnote notes -o json
7776```
7877
78+ ** Note types** : ` plain_text ` / ` img_text ` / ` link ` / ` audio ` / ` meeting ` / ` local_audio ` / ` internal_record ` / ` class_audio ` / ` recorder_audio ` / ` recorder_flash_audio `
79+
7980---
8081
8182### Get note details
@@ -84,9 +85,18 @@ getnote notes -o json
8485getnote note <id> [--field <field>]
8586```
8687
87- | Flag | Description |
88+ Returns full note including content, tags, attachments. Use ` --field ` to extract a single value.
89+
90+ | ` --field ` values | Description |
8891| ------| -------------|
89- | ` --field ` | Output a single field: ` id ` / ` title ` / ` content ` / ` type ` / ` created_at ` / ` updated_at ` / ` url ` / ` excerpt ` |
92+ | ` id ` | Note ID |
93+ | ` title ` | Title |
94+ | ` content ` | Content / AI summary |
95+ | ` type ` | Note type |
96+ | ` created_at ` | Creation time |
97+ | ` updated_at ` | Last updated time |
98+ | ` url ` | Source URL (link notes) |
99+ | ` excerpt ` | Excerpt |
90100
91101``` bash
92102getnote note 1234567890
@@ -107,13 +117,16 @@ getnote note update <id> [--title <title>] [--content <content>] [--tag <tags>]
107117| ------| -------------|
108118| ` --title ` | New title |
109119| ` --content ` | New content (plain_text notes only) |
110- | ` --tag ` | Comma-separated tags ( replaces all existing tags) |
120+ | ` --tag ` | Comma-separated tags — ** replaces all existing tags** |
111121
112122``` bash
113123getnote note update 1234567890 --title " Updated title"
114124getnote note update 1234567890 --tag " work,important"
115125```
116126
127+ > ⚠️ ` --tag ` replaces all tags. For partial tag changes use ` getnote tag add/remove ` .
128+ > ⚠️ Content update only works on ` plain_text ` notes.
129+
117130---
118131
119132### Delete a note
@@ -124,12 +137,7 @@ getnote note delete <id> [-y]
124137
125138Moves note to trash.
126139
127- | Flag | Description |
128- | ------| -------------|
129- | ` -y ` | Skip confirmation prompt |
130-
131140``` bash
132- getnote note delete 1234567890
133141getnote note delete 1234567890 -y
134142```
135143
@@ -138,6 +146,6 @@ getnote note delete 1234567890 -y
138146## Agent Usage Notes
139147
140148- Use ` -o json ` when parsing responses programmatically.
141- - ` save ` for URLs is async; in ` -o json ` mode the CLI auto-polls and returns the final note — no manual ` task ` polling needed .
142- - ` note update --tag ` replaces ** all ** existing tags; use ` getnote tag add/remove ` for partial updates .
149+ - ` notes ` list returns ** 20 per page ** (no ` --limit ` ); paginate with ` --since-id ` .
150+ - Note IDs are int64 — always handle as strings to avoid precision loss in JavaScript .
143151- Exit code ` 0 ` = success; non-zero = error. Error details go to stderr.
0 commit comments