CRITICAL — first read 共享规则, which contains mocli initialization, authentication, output parsing, and security rules
This skill is used to set a remark name for a Mowen UID (remark -> uid), remove a remark name, and use a remark name to look up a Mowen UID. A single Mowen UID can have multiple remark names.
Usage principles
- When the user refers to a Mowen user by a person name, nickname, or remark name, and a subsequent command needs a UID, prioritize running
mocli remark list --keyword <name>to find the UID. - If the remark matches a unique UID, you can directly use that UID for subsequent commands.
- If the remark matches multiple UIDs, display the remark name and UIDs, and let the user confirm the target.
- If the remark does not match, then use
mo-userto search for the user, or ask the user to provide the UID. setandremovewill modify the local remark configuration; before executing, you must confirm the user's intent.
mocli remark set
Set a remark name for a Mowen UID. A single UID can have multiple remark names. This command writes to the local remark configuration; before executing, you must confirm that the user really wants to add a remark.
Usage examples
- Set as remark 老池
mocli remark set xxxxxx 老池 - Set as remark 池老师
mocli remark set xxxxxx 池老师
mocli remark remove
Remove one or more remark entries.墨问 UID or 备注名 As long as one item exactly matches keyword, the corresponding entry will be removed. This command modifies the local remark configuration; before executing, you must confirm that the user really wants to delete it.
Usage examples
- Delete 老池's remark
mocli remark remove 老池 - Delete 's remark
mocli remark remove KBqt7yiVrXBa9DJIJuUm3
mocli remark list [--keyword string]
List all remark entries. Optional parameter --keyword is used to filter out remark names or UIDscontaining keyword entries.
Usage examples
- View my remark list
mocli remark list - View remarks related to 老池
mocli remark list --keyword 老池
Output example
without keyword
{
"code": 0,
"status": "OK",
"reply": {
"remarks": {
"me": "KBqt7yiVrXBa9DJIJuUm3",
"myself": "KBqt7yiVrXBa9DJIJuUm3",
"我": "KBqt7yiVrXBa9DJIJuUm3",
"池建强": "vtv_PV1fEMBb-8_BPlmDu",
"池老师": "vtv_PV1fEMBb-8_BPlmDu",
"精卫鸟zzz🇨🇳": "KBqt7yiVrXBa9DJIJuUm3",
"老池": "vtv_PV1fEMBb-8_BPlmDu"
}
}
}
with --keyword 池
{
"code": 0,
"status": "OK",
"reply": {
"remarks": {
"池建强": "vtv_PV1fEMBb-8_BPlmDu",
"池老师": "vtv_PV1fEMBb-8_BPlmDu",
"老池": "vtv_PV1fEMBb-8_BPlmDu"
}
}
}
reply field description
| Field | Type | Description |
|---|---|---|
remarks |
map[string]string | key is remark name, value is Mowen UID |
Result parsing rules
remarksThe key is the remark name, and the value is the Mowen UID.- The same UID may correspond to multiple remark names; when displaying, they can be merged by UID to reduce duplication.
- When used as a parameter for subsequent commands, use only the UID, and do not pass the remark name to a parameter that requires a UID.
- If
remarksis empty, it means there is no matching remark; do not guess the UID.
** Reference ** 公共展示规则