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: getnote
3description: 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.
4metadata:
5 source: https://skillmd.com/skills/aibot88/getnote
6 name: Get 笔记
7 description: Operate on Get 笔记 notes, search, tags, and knowledge resources through the Get 笔记 OpenAPI.
8 author: Flc
9 created: 2026-04-07T11:38:06Z
10---
11
12# Get 笔记
13
14Operate on Get 笔记 through its OpenAPI with a default execution path, local auth-file assumptions, and explicit handling for async note creation.
15
16## Operating Mode
17
18Act as a Get 笔记 operator, not as a generic REST client.
19
20Prioritize:
21
22- successful note operations through the bundled `.mjs` scripts
23- correct routing between text, link, image, search, list, tag, and knowledge flows
24- treating note IDs and cursors as strings to avoid JavaScript precision loss
25- assuming auth is already configured unless execution proves otherwise
26- concise recovery steps when auth or membership blocks execution
27- safe handling of uploaded images, remote URLs, and local config files
28
29Default scope for this skill:
30
31- save text notes
32- save link notes with async task polling
33- save image notes from a local file through the signed upload flow
34- list, inspect, update, and delete notes
35- semantic recall across notes and knowledge bases
36- add and delete note tags
37- list, create, and manage knowledge bases and their note membership
38- start OAuth device flow only when auth is missing or when the user explicitly asks to configure Get 笔记
39
40Default non-goals:
41
42- maintaining a full SDK abstraction layer
43- background retries without user intent
44- auto-writing secrets before an auth failure occurs
45- broad scraping or arbitrary remote file fetching outside Get 笔记's intended upload flow
46
47## Resource Map
48
49Read only the files you need:
50
51- auth posture and secret handling: [references/auth-and-safety.md](references/auth-and-safety.md)
52- local auth file schema and recovery steps: [references/config-schema.md](references/config-schema.md)
53- note creation and async task rules: [references/save.md](references/save.md)
54- semantic recall behavior: [references/search.md](references/search.md)
55- note listing, detail, update, and delete rules: [references/list.md](references/list.md)
56- knowledge base workflows: [references/knowledge.md](references/knowledge.md)
57- tag workflows: [references/tags.md](references/tags.md)
58- OAuth device flow details: [references/oauth.md](references/oauth.md)
59- error codes, rate limits, and ID handling: [references/api-details.md](references/api-details.md)
60
61Assume 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.
62
63## Core Routing
64
65Choose the smallest workflow that satisfies the request.
66
67### Save a Note
68
69Use for requests such as:
70
71- "记一下这段话"
72- "把这个链接存到笔记"
73- "把这张图保存到 Get 笔记"
74
75Sequence:
76
771. Classify the input as `plain_text`, `link`, or `img_text`.
782. Read [references/save.md](references/save.md) before building the request.
793. Use `scripts/getnote.mjs`.
804. For image notes:
81 - if the user provides a local image, let the script upload it first
82 - do not route arbitrary or pre-hosted image URLs through the bundled script
835. For link and image notes, treat creation as async:
84 - return or inspect `task_id`
85 - poll until `success` or `failed` when the user wants the full result now
866. When polling succeeds, follow with note detail if the user needs the generated summary or source details.
87
88### Search Notes
89
90Use for requests such as:
91
92- "搜一下我记过的 RAG"
93- "在这个知识库里找产品方案"
94
95Sequence:
96
971. Decide between global recall and knowledge recall.
982. Read [references/search.md](references/search.md).
993. Use `scripts/getnote.mjs search` or `scripts/getnote.mjs search-knowledge`.
1004. Prefer returning the most relevant titles, snippets, and timestamps first.
101
102### List Or Inspect Notes
103
104Use for requests such as:
105
106- "最近有哪些笔记"
107- "看一下这条笔记详情"
108- "更新这条纯文本笔记"
109
110Sequence:
111
1121. Read [references/list.md](references/list.md).
1132. Use `scripts/getnote.mjs list-notes`, `note-detail`, `update-note`, or `delete-note`.
1143. Preserve note IDs as strings and pass them through unchanged.
1154. Only update plain-text notes unless the API clearly supports another note type for that route.
116
117### Manage Knowledge Or Tags
118
119Use for requests such as:
120
121- "把这条笔记加到知识库"
122- "创建一个知识库"
123- "给这条笔记加标签"
124
125Sequence:
126
1271. Read [references/knowledge.md](references/knowledge.md) or [references/tags.md](references/tags.md).
1282. Use the matching `scripts/getnote.mjs` subcommand.
1293. For knowledge writes, identify the exact `topic_id` first instead of guessing.
1304. For tag deletion, use the concrete `tag_id`, not only the tag name.
131
132### Configure Or Recover Auth
133
134Use only when:
135
136- the user explicitly asks to configure Get 笔记
137- a live request fails because auth is missing, invalid, or malformed
138
139Sequence:
140
1411. Read [references/auth-and-safety.md](references/auth-and-safety.md).
1422. If the user wants OAuth device flow, read [references/oauth.md](references/oauth.md) and use:
143 - `scripts/getnote.mjs oauth-device-code --execute`
144 - `scripts/oauth-poll.mjs <code>`
1453. If the user wants local static config, read [references/config-schema.md](references/config-schema.md) and guide them to create `auth.json`.
1464. Do not proactively ask the user to configure auth before execution proves it is necessary.
147
148## Execution Rules
149
150- Use `scripts/getnote.mjs` as the default execution path for normal API operations.
151- Use preview mode by default. Pass `--execute` only when the user clearly wants the real action.
152- Read [references/auth-and-safety.md](references/auth-and-safety.md) before any live execution.
153- 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.
154- When a command fails with membership or quota errors, surface the exact API reason and stop instead of retrying blindly.
155
156## Script Map
157
158- `scripts/getnote.mjs`: main operator for note, search, knowledge, tag, and OAuth device-code requests
159- `scripts/oauth-poll.mjs`: focused device-flow token polling helper
160- `scripts/common.mjs`: shared auth loading, safe JSON parsing, request helpers, and preview formatting
161
162## Decision Rules
163
164- Treat `id`, `note_id`, `next_cursor`, `parent_id`, `follow_id`, and `live_id` as strings.
165- Do not recommend configuration until a real execution path proves auth is missing or broken.
166- Prefer the local auth file over inline secrets.
167- Allow CLI or env overrides only for one-off execution when the user explicitly wants them.
168- Do not echo API keys or signed OSS credentials.
169- Do not fetch arbitrary third-party URLs locally just to create an image note.
170- When the request is ambiguous between note search and knowledge search, resolve the target before writing or searching.
171- When a link or image save returns a `task_id`, do not claim the note is complete until task polling confirms success.