Get 笔记
Operate on Get 笔记 through its OpenAPI with a default execution path, local auth-file assumptions, and explicit handling for async note creation.
Operating Mode
Act as a Get 笔记 operator, not as a generic REST client.
Prioritize:
- successful note operations through the bundled
.mjs scripts
- correct routing between text, link, image, search, list, tag, and knowledge flows
- treating note IDs and cursors as strings to avoid JavaScript precision loss
- assuming auth is already configured unless execution proves otherwise
- concise recovery steps when auth or membership blocks execution
- safe handling of uploaded images, remote URLs, and local config files
Default scope for this skill:
- save text notes
- save link notes with async task polling
- save image notes from a local file through the signed upload flow
- list, inspect, update, and delete notes
- semantic recall across notes and knowledge bases
- add and delete note tags
- list, create, and manage knowledge bases and their note membership
- start OAuth device flow only when auth is missing or when the user explicitly asks to configure Get 笔记
Default non-goals:
- maintaining a full SDK abstraction layer
- background retries without user intent
- auto-writing secrets before an auth failure occurs
- broad scraping or arbitrary remote file fetching outside Get 笔记's intended upload flow
Resource Map
Read only the files you need:
- auth posture and secret handling: references/auth-and-safety.md
- local auth file schema and recovery steps: references/config-schema.md
- note creation and async task rules: references/save.md
- semantic recall behavior: references/search.md
- note listing, detail, update, and delete rules: references/list.md
- knowledge base workflows: references/knowledge.md
- tag workflows: references/tags.md
- OAuth device flow details: references/oauth.md
- error codes, rate limits, and ID handling: references/api-details.md
Assume the local auth file already exists and is valid when the user asks to perform a Get 笔记 action. Only read references/config-schema.md after execution fails because auth is missing or malformed.
Core Routing
Choose the smallest workflow that satisfies the request.
Save a Note
Use for requests such as:
- "记一下这段话"
- "把这个链接存到笔记"
- "把这张图保存到 Get 笔记"
Sequence:
- Classify the input as
plain_text, link, or img_text.
- Read references/save.md before building the request.
- Use
scripts/getnote.mjs.
- For image notes:
- if the user provides a local image, let the script upload it first
- do not route arbitrary or pre-hosted image URLs through the bundled script
- For link and image notes, treat creation as async:
- return or inspect
task_id
- poll until
success or failed when the user wants the full result now
- When polling succeeds, follow with note detail if the user needs the generated summary or source details.
Search Notes
Use for requests such as:
- "搜一下我记过的 RAG"
- "在这个知识库里找产品方案"
Sequence:
- Decide between global recall and knowledge recall.
- Read references/search.md.
- Use
scripts/getnote.mjs search or scripts/getnote.mjs search-knowledge.
- Prefer returning the most relevant titles, snippets, and timestamps first.
List Or Inspect Notes
Use for requests such as:
- "最近有哪些笔记"
- "看一下这条笔记详情"
- "更新这条纯文本笔记"
Sequence:
- Read references/list.md.
- Use
scripts/getnote.mjs list-notes, note-detail, update-note, or delete-note.
- Preserve note IDs as strings and pass them through unchanged.
- Only update plain-text notes unless the API clearly supports another note type for that route.
Manage Knowledge Or Tags
Use for requests such as:
- "把这条笔记加到知识库"
- "创建一个知识库"
- "给这条笔记加标签"
Sequence:
- Read references/knowledge.md or references/tags.md.
- Use the matching
scripts/getnote.mjs subcommand.
- For knowledge writes, identify the exact
topic_id first instead of guessing.
- For tag deletion, use the concrete
tag_id, not only the tag name.
Configure Or Recover Auth
Use only when:
- the user explicitly asks to configure Get 笔记
- a live request fails because auth is missing, invalid, or malformed
Sequence:
- Read references/auth-and-safety.md.
- If the user wants OAuth device flow, read references/oauth.md and use:
scripts/getnote.mjs oauth-device-code --execute
scripts/oauth-poll.mjs <code>
- If the user wants local static config, read references/config-schema.md and guide them to create
auth.json.
- Do not proactively ask the user to configure auth before execution proves it is necessary.
Execution Rules
- Use
scripts/getnote.mjs as the default execution path for normal API operations.
- Use preview mode by default. Pass
--execute only when the user clearly wants the real action.
- Read references/auth-and-safety.md before any live execution.
- When a command fails with missing auth, point to references/config-schema.md rather than inventing a new secret storage model.
- When a command fails with membership or quota errors, surface the exact API reason and stop instead of retrying blindly.
Script Map
scripts/getnote.mjs: main operator for note, search, knowledge, tag, and OAuth device-code requests
scripts/oauth-poll.mjs: focused device-flow token polling helper
scripts/common.mjs: shared auth loading, safe JSON parsing, request helpers, and preview formatting
Decision Rules
- Treat
id, note_id, next_cursor, parent_id, follow_id, and live_id as strings.
- Do not recommend configuration until a real execution path proves auth is missing or broken.
- Prefer the local auth file over inline secrets.
- Allow CLI or env overrides only for one-off execution when the user explicitly wants them.
- Do not echo API keys or signed OSS credentials.
- Do not fetch arbitrary third-party URLs locally just to create an image note.
- When the request is ambiguous between note search and knowledge search, resolve the target before writing or searching.
- When a link or image save returns a
task_id, do not claim the note is complete until task polling confirms success.
1---2name: getnote3description: Save, search, list, and organize Get 笔记 notes, images, tags, and knowledge resources through the Get 笔记 OpenAPI. Use when storing text or links as notes, uploading an image into a note workflow, recalling prior notes, inspecting note details, managing tags or knowledge bases, or recovering from Get 笔记 authentication failures with the local auth.json setup.4---5
6# Get 笔记
7
8Operate on Get 笔记 through its OpenAPI with a default execution path, local auth-file assumptions, and explicit handling for async note creation.
9
10## Operating Mode
11
12Act as a Get 笔记 operator, not as a generic REST client.
13
14Prioritize:
15
16- successful note operations through the bundled `.mjs` scripts
17- correct routing between text, link, image, search, list, tag, and knowledge flows
18- treating note IDs and cursors as strings to avoid JavaScript precision loss
19- assuming auth is already configured unless execution proves otherwise
20- concise recovery steps when auth or membership blocks execution
21- safe handling of uploaded images, remote URLs, and local config files
22
23Default scope for this skill:
24
25- save text notes
26- save link notes with async task polling
27- save image notes from a local file through the signed upload flow
28- list, inspect, update, and delete notes
29- semantic recall across notes and knowledge bases
30- add and delete note tags
31- list, create, and manage knowledge bases and their note membership
32- start OAuth device flow only when auth is missing or when the user explicitly asks to configure Get 笔记
33
34Default non-goals:
35
36- maintaining a full SDK abstraction layer
37- background retries without user intent
38- auto-writing secrets before an auth failure occurs
39- broad scraping or arbitrary remote file fetching outside Get 笔记's intended upload flow
40
41## Resource Map
42
43Read only the files you need:
44
45- auth posture and secret handling: [references/auth-and-safety.md](references/auth-and-safety.md)
46- local auth file schema and recovery steps: [references/config-schema.md](references/config-schema.md)
47- note creation and async task rules: [references/save.md](references/save.md)
48- semantic recall behavior: [references/search.md](references/search.md)
49- note listing, detail, update, and delete rules: [references/list.md](references/list.md)
50- knowledge base workflows: [references/knowledge.md](references/knowledge.md)
51- tag workflows: [references/tags.md](references/tags.md)
52- OAuth device flow details: [references/oauth.md](references/oauth.md)
53- error codes, rate limits, and ID handling: [references/api-details.md](references/api-details.md)
54
55Assume the local auth file already exists and is valid when the user asks to perform a Get 笔记 action. Only read [references/config-schema.md](references/config-schema.md) after execution fails because auth is missing or malformed.
56
57## Core Routing
58
59Choose the smallest workflow that satisfies the request.
60
61### Save a Note
62
63Use for requests such as:
64
65- "记一下这段话"
66- "把这个链接存到笔记"
67- "把这张图保存到 Get 笔记"
68
69Sequence:
70
711. Classify the input as `plain_text`, `link`, or `img_text`.
722. Read [references/save.md](references/save.md) before building the request.
733. Use `scripts/getnote.mjs`.
744. For image notes:
75 - if the user provides a local image, let the script upload it first
76 - do not route arbitrary or pre-hosted image URLs through the bundled script
775. For link and image notes, treat creation as async:
78 - return or inspect `task_id`
79 - poll until `success` or `failed` when the user wants the full result now
806. When polling succeeds, follow with note detail if the user needs the generated summary or source details.
81
82### Search Notes
83
84Use for requests such as:
85
86- "搜一下我记过的 RAG"
87- "在这个知识库里找产品方案"
88
89Sequence:
90
911. Decide between global recall and knowledge recall.
922. Read [references/search.md](references/search.md).
933. Use `scripts/getnote.mjs search` or `scripts/getnote.mjs search-knowledge`.
944. Prefer returning the most relevant titles, snippets, and timestamps first.
95
96### List Or Inspect Notes
97
98Use for requests such as:
99
100- "最近有哪些笔记"
101- "看一下这条笔记详情"
102- "更新这条纯文本笔记"
103
104Sequence:
105
1061. Read [references/list.md](references/list.md).
1072. Use `scripts/getnote.mjs list-notes`, `note-detail`, `update-note`, or `delete-note`.
1083. Preserve note IDs as strings and pass them through unchanged.
1094. Only update plain-text notes unless the API clearly supports another note type for that route.
110
111### Manage Knowledge Or Tags
112
113Use for requests such as:
114
115- "把这条笔记加到知识库"
116- "创建一个知识库"
117- "给这条笔记加标签"
118
119Sequence:
120
1211. Read [references/knowledge.md](references/knowledge.md) or [references/tags.md](references/tags.md).
1222. Use the matching `scripts/getnote.mjs` subcommand.
1233. For knowledge writes, identify the exact `topic_id` first instead of guessing.
1244. For tag deletion, use the concrete `tag_id`, not only the tag name.
125
126### Configure Or Recover Auth
127
128Use only when:
129
130- the user explicitly asks to configure Get 笔记
131- a live request fails because auth is missing, invalid, or malformed
132
133Sequence:
134
1351. Read [references/auth-and-safety.md](references/auth-and-safety.md).
1362. If the user wants OAuth device flow, read [references/oauth.md](references/oauth.md) and use:
137 - `scripts/getnote.mjs oauth-device-code --execute`
138 - `scripts/oauth-poll.mjs <code>`
1393. If the user wants local static config, read [references/config-schema.md](references/config-schema.md) and guide them to create `auth.json`.
1404. Do not proactively ask the user to configure auth before execution proves it is necessary.
141
142## Execution Rules
143
144- Use `scripts/getnote.mjs` as the default execution path for normal API operations.
145- Use preview mode by default. Pass `--execute` only when the user clearly wants the real action.
146- Read [references/auth-and-safety.md](references/auth-and-safety.md) before any live execution.
147- When a command fails with missing auth, point to [references/config-schema.md](references/config-schema.md) rather than inventing a new secret storage model.
148- When a command fails with membership or quota errors, surface the exact API reason and stop instead of retrying blindly.
149
150## Script Map
151
152- `scripts/getnote.mjs`: main operator for note, search, knowledge, tag, and OAuth device-code requests
153- `scripts/oauth-poll.mjs`: focused device-flow token polling helper
154- `scripts/common.mjs`: shared auth loading, safe JSON parsing, request helpers, and preview formatting
155
156## Decision Rules
157
158- Treat `id`, `note_id`, `next_cursor`, `parent_id`, `follow_id`, and `live_id` as strings.
159- Do not recommend configuration until a real execution path proves auth is missing or broken.
160- Prefer the local auth file over inline secrets.
161- Allow CLI or env overrides only for one-off execution when the user explicitly wants them.
162- Do not echo API keys or signed OSS credentials.
163- Do not fetch arbitrary third-party URLs locally just to create an image note.
164- When the request is ambiguous between note search and knowledge search, resolve the target before writing or searching.
165- When a link or image save returns a `task_id`, do not claim the note is complete until task polling confirms success.