diff --git a/skills/lark-im/references/lark-im-messages-reply.md b/skills/lark-im/references/lark-im-messages-reply.md index b1b7257c1..72ceb8c6f 100644 --- a/skills/lark-im/references/lark-im-messages-reply.md +++ b/skills/lark-im/references/lark-im-messages-reply.md @@ -222,11 +222,27 @@ lark-cli im +messages-reply --message-id om_xxx --text "Let me take a look at th The reply appears in the target message's thread and does not show up in the main chat stream. -## @Mention Format (text / post) +## @Mention Format -- Recommended format: `name` +The `` syntax differs by message type. The shortcut only normalizes mentions for `text` and `post`; `interactive` card content is passed through verbatim, so cards must use the card-native syntax below. + +### `text` + +- `name` — the inner text is the mentioned user's display name and is optional (`` also works) - @all: `` -- The shortcut normalizes common variants like `` and `` into `user_id`, but `user_id` remains the recommended documented form + +### `post` + +- Inside a `text` or `md` element, the same inline form as `text` works: `name` +- Or use a dedicated `at` element node: `{"tag":"at","user_id":"ou_xxx"}` (use `"all"` to mention everyone) + +### `interactive` (card) + +Card content is **not** normalized — use the card-native `` syntax inside a `lark_md` / `markdown` element: + +- single user by open_id: `` +- multiple users: `` +- by email: `` ## Notes diff --git a/skills/lark-im/references/lark-im-messages-send.md b/skills/lark-im/references/lark-im-messages-send.md index 89bb02276..484c024f4 100644 --- a/skills/lark-im/references/lark-im-messages-send.md +++ b/skills/lark-im/references/lark-im-messages-send.md @@ -224,11 +224,27 @@ lark-cli im +messages-send --chat-id oc_xxx --markdown $'## Test\n\nhello' --dry } ``` -## @Mention Format (text / post) +## @Mention Format -- Recommended format: `name` +The `` syntax differs by message type. The shortcut only normalizes mentions for `text` and `post`; `interactive` card content is passed through verbatim, so cards must use the card-native syntax below. + +### `text` + +- `name` — the inner text is the mentioned user's display name and is optional (`` also works) - @all: `` -- The shortcut normalizes common variants like `` and `` into `user_id`, but you should still document examples with `user_id` + +### `post` + +- Inside a `text` or `md` element, the same inline form as `text` works: `name` +- Or use a dedicated `at` element node: `{"tag":"at","user_id":"ou_xxx"}` (use `"all"` to mention everyone) + +### `interactive` (card) + +Card content is **not** normalized — use the card-native `` syntax inside a `lark_md` / `markdown` element: + +- single user by open_id: `` +- multiple users: `` +- by email: `` ## Notes