| name | send-message |
| description | Use when the user asks to send a message to a specific contact in Lark. The agent should open search, locate the contact, enter the chat window, paste the message content, and send with Enter. |
Send Message Skill
Provide robust guidance for message-sending workflows in Lark desktop clients.
Trigger
Use this skill when the user intent is equivalent to:
- 给 xxx 发消息 yyy
- 给 xxx 发送 yyy
- 帮我给 xxx 说 yyy
Workflow
- Open global search (
command+k on macOS / ctrl+k on Windows).
- Input the contact name in search.
- Click the correct contact from search results (exact contact match only).
- After contact click succeeds, interact with the chat window. CRITICAL: Act as a smart human assistant! If the user's
message intent is "发个表情包", you can use click_position to click the emoji button on the screen.
- Press
enter to send.
ReAct constraints
- Make decisions only from the latest screenshot.
- Never rely on a fixed grid index across rounds.
- Contact selection must follow this priority:
- Prefer the top exact-match contact row in the search result area.
- Click the contact avatar/name row, not unrelated rows.
- If using click_position, carefully locate the exact center of the avatar or contact name.
- After entering the target chat, do not continue clicking coordinates; switch immediately to paste + send.
- If uncertain whether chat has switched to the target contact, prefer a conservative action (
wait or re-locate) over sending.
- Treat accidental send to the wrong chat as highest-risk failure.
Output expectations
- Planning stage should include explicit steps for search -> contact selection -> message input -> send.
- ReAct stage should emit one function call per round and re-check UI state before sending.