getnote-tag
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegetnote-tag Skill
getnote-tag Skill
Add, list, and remove tags on notes.
实现笔记标签的新增、查询和删除功能。
Prerequisites
前置条件
- CLI installed and authenticated (
getnoteshould show "Authenticated")getnote auth status
- 已安装CLI并完成身份验证(执行
getnote应当显示「Authenticated」)getnote auth status
Commands
命令
List tags on a note
查看单条笔记的标签列表
getnote tag list <note_id>Returns all tags with their IDs and types.
Tag types:
- — auto-generated by AI
ai - — added by the user
manual - — system tag (cannot be deleted)
system
bash
getnote tag list 1896830231705320746
getnote tag list 1896830231705320746 -o jsongetnote tag list <note_id>返回所有标签及其ID和类型。
标签类型:
- — AI自动生成
ai - — 用户手动添加
manual - — 系统标签(不可删除)
system
bash
getnote tag list 1896830231705320746
getnote tag list 1896830231705320746 -o jsonAdd a tag
新增标签
getnote tag add <note_id> <tag>bash
getnote tag add 1896830231705320746 工作getnote tag add <note_id> <tag>bash
getnote tag add 1896830231705320746 工作Remove a tag
删除标签
getnote tag remove <note_id> <tag_id>⚠️ Requires tag ID (integer from), not tag name. ⚠️tag listtype tags cannot be removed.system
bash
undefinedgetnote tag remove <note_id> <tag_id>⚠️ 需要传入标签ID(命令返回的整数),而不是标签名称。 ⚠️tag list类型的标签无法删除。system
bash
undefinedStep 1: get tag IDs
步骤1:获取标签ID
getnote tag list 1896830231705320746 -o json
getnote tag list 1896830231705320746 -o json
Step 2: remove by tag ID
步骤2:通过标签ID删除
getnote tag remove 1896830231705320746 123
---getnote tag remove 1896830231705320746 123
---Agent Usage Notes
Agent使用说明
- returns
tag list -o json(flat, no{"note_id":"...","tags":[{"id":"...","name":"...","type":"..."}]}wrapper).success - takes a numeric tag ID, not a name — always call
tag removefirst.tag list - To replace all tags at once, use instead.
getnote note update --tag "tag1,tag2" - Exit code = success; non-zero = error. Error details go to stderr.
0
- 返回格式为
tag list -o json(扁平化结构,无{"note_id":"...","tags":[{"id":"...","name":"...","type":"..."}]}外层包裹)。success - 接收的是数字类型的标签ID,不是名称 — 务必先调用
tag remove获取ID。tag list - 如需一次性替换全部标签,请改用命令。
getnote note update --tag "tag1,tag2" - 退出码表示操作成功;非0值表示出错,错误详情会输出到stderr。
0