mo-note
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese前置约束
Preconditions
CRITICAL — 先阅读 ,其中包含 初始化、认证、输出解析以及安全规则
共享规则mocliCRITICAL — Please read the first, which includes initialization, authentication, output parsing, and security rules
Shared Rulesmoclimocli note - 墨问笔记
mocli note - Mowen Notes
命令选择规则
Command Selection Rules
- 用户要“搜索某关键词相关笔记”时,使用 。
mocli note search - 用户要“看某人的主页/公开笔记/热门笔记/付费笔记/合集”时,使用 。
mocli note homepage - 用户要“看我自己的笔记/私有笔记/未公开笔记/我写过的笔记”时,使用 。
mocli note mine - 用户提到人名、昵称、备注名但没有给 UID 时,优先用 查 UID;未命中再考虑
mo-remark或询问用户补充 UID。mocli user search - 展示笔记列表时,优先按 的顺序遍历,再到
reply.note_ids获取笔记详情,并用reply.notes[note_id]到reply.notes[note_id].uid获取作者信息。reply.users
- Use when the user wants to "search for notes related to a certain keyword".
mocli note search - Use when the user wants to "view someone's homepage/public notes/popular notes/premium notes/collections".
mocli note homepage - Use when the user wants to "view my own notes/private notes/unpublished notes/notes I wrote".
mocli note mine - When the user mentions a person's name, nickname, or alias but doesn't provide a UID, prioritize using to look up the UID; if no match is found, consider using
mo-remarkor ask the user to supplement the UID.mocli user search - When displaying the note list, prioritize traversing in the order of , then get the note details from
reply.note_ids, and usereply.notes[note_id]to get the author information fromreply.notes[note_id].uid.reply.users
mocli note search [--keyword] [--count] [--focus]
mocli note search [--keyword] [--count] [--focus]
本命令用于按关键词搜索笔记。 是必填参数;如果用户明确要求只搜索指定用户的笔记,先解析该用户 UID,再通过 指定 UID。
--keyword--focus可选参数:
- :搜索关键词(必填)。
--keyword string - :返回笔记数量。范围:
--count int。默认:1-100。20 - :只搜索指定用户(UID)的笔记。
--focus string
This command is used to search for notes by keyword. is a required parameter; if the user explicitly requests to search only for notes from a specified user, first parse the user's UID, then specify the UID via .
--keyword--focusOptional parameters:
- : Search keyword (required).
--keyword string - : Number of notes to return. Range:
--count int. Default:1-100.20 - : Only search for notes from the specified user (UID).
--focus string
使用示例
Usage Examples
- 在墨问中搜索包含「AI Agent」关键词的笔记
mocli note search --keyword "AI Agent"- 在墨问中搜索 10 篇包含「产品思考」的笔记
mocli note search --keyword "产品思考" --count 10 - 在墨问中搜索老池(指定 UID)写的「Prompt」相关笔记
mocli note search --keyword "Prompt" --focus xxxxxxxx --count 20
- 在墨问中搜索 10 篇包含「产品思考」的笔记
- Search for notes containing the keyword "AI Agent" in Mowen:
mocli note search --keyword "AI Agent"- Search for 10 notes containing "Product Thinking" in Mowen:
mocli note search --keyword "产品思考" --count 10 - Search for notes related to "Prompt" written by Lao Chi (specified UID) in Mowen:
mocli note search --keyword "Prompt" --focus xxxxxxxx --count 20
- Search for 10 notes containing "Product Thinking" in Mowen:
输出示例
Output Example
{
"code": 0,
"status": "OK",
"reply": {
"note_ids": [
"3jv1AiAjXJ4aBC83LqdMC",
"ZVDGaChlin5voLpIp_9TM"
],
"notes": {
"3jv1AiAjXJ4aBC83LqdMC": {
"note_id": "3jv1AiAjXJ4aBC83LqdMC",
"uid": "Qiz5hxiY5wr5L76fyd8Kv",
"title": "最近心情",
"brief": "笔记摘要",
"url": "https://note.mowen.cn/detail/3jv1AiAjXJ4aBC83LqdMC?from=mocli"
},
"ZVDGaChlin5voLpIp_9TM": {
"note_id": "ZVDGaChlin5voLpIp_9TM",
"uid": "Qiz5hxiY5wr5L76fyd8Kv",
"title": "大家好呀,我是小白",
"brief": "笔记摘要",
"url": "https://note.mowen.cn/detail/ZVDGaChlin5voLpIp_9TM?from=mocli"
}
},
"users": {
"Qiz5hxiY5wr5L76fyd8Kv": {
"uid": "xxxxxxxxxxxxxx",
"name": "精卫鸟.",
"intro": "一只小小鸟,订阅我的没几个人,所以你们都是特殊的。。"
}
}
}
}{
"code": 0,
"status": "OK",
"reply": {
"note_ids": [
"3jv1AiAjXJ4aBC83LqdMC",
"ZVDGaChlin5voLpIp_9TM"
],
"notes": {
"3jv1AiAjXJ4aBC83LqdMC": {
"note_id": "3jv1AiAjXJ4aBC83LqdMC",
"uid": "Qiz5hxiY5wr5L76fyd8Kv",
"title": "最近心情",
"brief": "笔记摘要",
"url": "https://note.mowen.cn/detail/3jv1AiAjXJ4aBC83LqdMC?from=mocli"
},
"ZVDGaChlin5voLpIp_9TM": {
"note_id": "ZVDGaChlin5voLpIp_9TM",
"uid": "Qiz5hxiY5wr5L76fyd8Kv",
"title": "大家好呀,我是小白",
"brief": "笔记摘要",
"url": "https://note.mowen.cn/detail/ZVDGaChlin5voLpIp_9TM?from=mocli"
}
},
"users": {
"Qiz5hxiY5wr5L76fyd8Kv": {
"uid": "xxxxxxxxxxxxxx",
"name": "精卫鸟.",
"intro": "一只小小鸟,订阅我的没几个人,所以你们都是特殊的。。"
}
}
}
}reply 字段说明
Reply Field Description
| 字段 | 类型 | 说明 | 引用字段 |
|---|---|---|---|
| array | 笔记 ID 列表(有序)。展示列表时优先遍历该字段。 | - |
| map[string]NoteInfo | 笔记信息 | |
| map[string]UserInfo | 用户信息 | |
| Field | Type | Description | Reference Field |
|---|---|---|---|
| array | Ordered list of note IDs. Prioritize traversing this field when displaying the list. | - |
| map[string]NoteInfo | Note information Map, with note IDs as keys and note information as values. | |
| map[string]UserInfo | User information Map, with user UIDs as keys and user information as values. Use | |
mocli note homepage [--uid] [--filter] [--count] [--recent]
mocli note homepage [--uid] [--filter] [--count] [--recent]
本命令用于查看某个用户个人主页上的笔记列表,即对外展示的笔记;它不同于 ,不会返回当前认证用户的私有笔记。用户未提供 时,默认查看当前认证用户的主页。
mocli note mine--uid可选参数:
- :要查看主页笔记的墨问 UID。默认使用当前认证用户的 UID。
--uid string - :筛选类型。支持:
--filter string、all(全部笔记)、album(合集)、fee(付费笔记)。默认:popular(热门笔记,即最多阅读)。all - :返回笔记数量。范围:
--count int。默认:1-100。20 - :最近时间筛选,目前支持到天(d)和小时(h),如:
--recent string、2h,范围:1d。当1h-15d时忽略本参数。--filter=popular
This command is used to view the note list on a user's personal homepage, i.e., publicly displayed notes; unlike , it does not return private notes of the currently authenticated user. If the user does not provide , the homepage of the currently authenticated user is viewed by default.
mocli note mine--uidOptional parameters:
- : Mowen UID of the user whose homepage notes are to be viewed. Uses the UID of the currently authenticated user by default.
--uid string - : Filter type. Supported values:
--filter string,all(all notes),album(collections),fee(premium notes). Default:popular(popular notes, i.e., most read).all - : Number of notes to return. Range:
--count int. Default:1-100.20 - : Recent time filter, currently supports days(d) and hours(h), e.g.:
--recent string,2h, range:1d. This parameter is ignored when1h-15d.--filter=popular
使用示例
Usage Examples
- 看看我最近发表了哪些笔记
mocli note homepage --recent 3d- 给我 10 篇二爷发表过的付费笔记
mocli note homepage --uid xxxxxxxx --filter fee --count 10 - 给我 10 篇老池最近 3 天发表过的笔记合集
mocli note homepage --uid xxxxxxxx --filter album --count 10 --recent 3d - 给我 30 篇池老师最热门的笔记
mocli note homepage --uid xxxxxx --filter popular --count 30
- 给我 10 篇二爷发表过的付费笔记
- Check which notes I have published recently:
mocli note homepage --recent 3d- Get 10 premium notes published by Erye:
mocli note homepage --uid xxxxxxxx --filter fee --count 10 - Get 10 note collections published by Lao Chi in the last 3 days:
mocli note homepage --uid xxxxxxxx --filter album --count 10 --recent 3d - Get 30 most popular notes from Teacher Chi:
mocli note homepage --uid xxxxxx --filter popular --count 30
- Get 10 premium notes published by Erye:
输出示例
Output Example
{
"code": 0,
"status": "OK",
"reply": {
"note_ids": [
"3jv1AiAjXJ4aBC83LqdMC",
"ZVDGaChlin5voLpIp_9TM"
],
"notes": {
"3jv1AiAjXJ4aBC83LqdMC": {
"note_id": "3jv1AiAjXJ4aBC83LqdMC",
"uid": "Qiz5hxiY5wr5L76fyd8Kv",
"title": "最近心情",
"brief": "笔记摘要",
"url": "https://note.mowen.cn/detail/3jv1AiAjXJ4aBC83LqdMC?from=mocli"
},
"ZVDGaChlin5voLpIp_9TM": {
"note_id": "ZVDGaChlin5voLpIp_9TM",
"uid": "Qiz5hxiY5wr5L76fyd8Kv",
"title": "大家好呀,我是小白",
"brief": "笔记摘要",
"url": "https://note.mowen.cn/detail/ZVDGaChlin5voLpIp_9TM?from=mocli"
}
},
"users": {
"Qiz5hxiY5wr5L76fyd8Kv": {
"uid": "xxxxxxxxxxxxxx",
"name": "精卫鸟.",
"intro": "一只小小鸟,订阅我的没几个人,所以你们都是特殊的。。"
}
}
}
}{
"code": 0,
"status": "OK",
"reply": {
"note_ids": [
"3jv1AiAjXJ4aBC83LqdMC",
"ZVDGaChlin5voLpIp_9TM"
],
"notes": {
"3jv1AiAjXJ4aBC83LqdMC": {
"note_id": "3jv1AiAjXJ4aBC83LqdMC",
"uid": "Qiz5hxiY5wr5L76fyd8Kv",
"title": "最近心情",
"brief": "笔记摘要",
"url": "https://note.mowen.cn/detail/3jv1AiAjXJ4aBC83LqdMC?from=mocli"
},
"ZVDGaChlin5voLpIp_9TM": {
"note_id": "ZVDGaChlin5voLpIp_9TM",
"uid": "Qiz5hxiY5wr5L76fyd8Kv",
"title": "大家好呀,我是小白",
"brief": "笔记摘要",
"url": "https://note.mowen.cn/detail/ZVDGaChlin5voLpIp_9TM?from=mocli"
}
},
"users": {
"Qiz5hxiY5wr5L76fyd8Kv": {
"uid": "xxxxxxxxxxxxxx",
"name": "精卫鸟.",
"intro": "一只小小鸟,订阅我的没几个人,所以你们都是特殊的。。"
}
}
}
}reply 字段说明
Reply Field Description
| 字段 | 类型 | 说明 | 引用字段 |
|---|---|---|---|
| array | 笔记 ID 列表(有序)。展示列表时优先遍历该字段。 | - |
| map[string]NoteInfo | 笔记信息 | |
| map[string]UserInfo | 用户信息 | |
| Field | Type | Description | Reference Field |
|---|---|---|---|
| array | Ordered list of note IDs. Prioritize traversing this field when displaying the list. | - |
| map[string]NoteInfo | Note information Map, with note IDs as keys and note information as values. | |
| map[string]UserInfo | User information Map, with user UIDs as keys and user information as values. Use | |
mocli note mine [--filter] [--count] [--recent]
mocli note mine [--filter] [--count] [--recent]
本命令用于查看当前认证用户创作的笔记列表,可能包含私有、部分公开、完全公开和付费笔记。它不同于 : 面向当前认证用户的创作管理视角, 面向主页公开展示视角。用户只说“我的笔记”时优先使用本命令;如果用户明确说“我的主页笔记/公开主页”,使用 。
mocli note homepageminehomepagehomepage可选参数:
- :筛选类型。支持:
--filter string、all(全部笔记)、fee(付费笔记)、pub(完全公开)、cond-pub(部分公开)。默认:priv(私有)。all - :返回笔记数量。范围:
--count int。默认:1-100。20 - :最近时间筛选,支持天(d)和小时(h),如:
--recent string、2h,范围:1d。1h-15d
This command is used to view the list of notes created by the currently authenticated user, which may include private, partially public, fully public, and premium notes. It differs from : is for the current authenticated user's creation management perspective, while is for the public homepage display perspective. Prioritize using this command when the user only says "my notes"; if the user explicitly says "my homepage notes/public homepage", use .
mocli note homepageminehomepagehomepageOptional parameters:
- : Filter type. Supported values:
--filter string,all(all notes),fee(premium notes),pub(fully public),cond-pub(partially public). Default:priv(private).all - : Number of notes to return. Range:
--count int. Default:1-100.20 - : Recent time filter, supports days(d) and hours(h), e.g.:
--recent string,2h, range:1d.1h-15d
使用示例
Usage Examples
- 看看我最近 3 天写的笔记
mocli note mine --recent 3d- 给我 10 篇我自己的付费笔记
mocli note mine --filter fee --count 10 - 给我 20 篇我自己的私有笔记(近 3 天)
mocli note mine --filter priv --count 20 --recent 3d
- 给我 10 篇我自己的付费笔记
- Check the notes I wrote in the last 3 days:
mocli note mine --recent 3d- Get 10 of my own premium notes:
mocli note mine --filter fee --count 10 - Get 20 of my own private notes (in the last 3 days):
mocli note mine --filter priv --count 20 --recent 3d
- Get 10 of my own premium notes:
输出示例
Output Example
{
"code": 0,
"status": "OK",
"reply": {
"note_ids": [
"3jv1AiAjXJ4aBC83LqdMC",
"ZVDGaChlin5voLpIp_9TM"
],
"notes": {
"3jv1AiAjXJ4aBC83LqdMC": {
"note_id": "3jv1AiAjXJ4aBC83LqdMC",
"uid": "Qiz5hxiY5wr5L76fyd8Kv",
"title": "最近心情",
"brief": "笔记摘要",
"url": "https://note.mowen.cn/detail/3jv1AiAjXJ4aBC83LqdMC?from=mocli"
},
"ZVDGaChlin5voLpIp_9TM": {
"note_id": "ZVDGaChlin5voLpIp_9TM",
"uid": "Qiz5hxiY5wr5L76fyd8Kv",
"title": "大家好呀,我是小白",
"brief": "笔记摘要",
"url": "https://note.mowen.cn/detail/ZVDGaChlin5voLpIp_9TM?from=mocli"
}
},
"users": {
"Qiz5hxiY5wr5L76fyd8Kv": {
"uid": "xxxxxxxxxxxxxx",
"name": "精卫鸟.",
"intro": "一只小小鸟,订阅我的没几个人,所以你们都是特殊的。。"
}
}
}
}{
"code": 0,
"status": "OK",
"reply": {
"note_ids": [
"3jv1AiAjXJ4aBC83LqdMC",
"ZVDGaChlin5voLpIp_9TM"
],
"notes": {
"3jv1AiAjXJ4aBC83LqdMC": {
"note_id": "3jv1AiAjXJ4aBC83LqdMC",
"uid": "Qiz5hxiY5wr5L76fyd8Kv",
"title": "最近心情",
"brief": "笔记摘要",
"url": "https://note.mowen.cn/detail/3jv1AiAjXJ4aBC83LqdMC?from=mocli"
},
"ZVDGaChlin5voLpIp_9TM": {
"note_id": "ZVDGaChlin5voLpIp_9TM",
"uid": "Qiz5hxiY5wr5L76fyd8Kv",
"title": "大家好呀,我是小白",
"brief": "笔记摘要",
"url": "https://note.mowen.cn/detail/ZVDGaChlin5voLpIp_9TM?from=mocli"
}
},
"users": {
"Qiz5hxiY5wr5L76fyd8Kv": {
"uid": "xxxxxxxxxxxxxx",
"name": "精卫鸟.",
"intro": "一只小小鸟,订阅我的没几个人,所以你们都是特殊的。。"
}
}
}
}reply 字段说明
Reply Field Description
| 字段 | 类型 | 说明 | 引用字段 |
|---|---|---|---|
| array | 笔记 ID 列表(有序)。展示列表时优先遍历该字段。 | - |
| map[string]NoteInfo | 笔记信息 | |
| map[string]UserInfo | 用户信息 | |
| Field | Type | Description | Reference Field |
|---|---|---|---|
| array | Ordered list of note IDs. Prioritize traversing this field when displaying the list. | - |
| map[string]NoteInfo | Note information Map, with note IDs as keys and note information as values. | |
| map[string]UserInfo | User information Map, with user UIDs as keys and user information as values. Use | |
展示规则
Display Rules
** 参考 **
公共展示规则** Reference **
Public Display Rules