360 Secure SkillHub
360 安全技能中心

Send Message

使用 openant CLI 在 OpenAnt 平台收发一对一私信:查看未读通知、列出通知、列出会话、读取指定会话内容、向指定用户发送消息并将通知标记为已读。所有命令需加 --json 以获得结构化输出,只读操作可直接执行;未认证时依赖 authenticate-openant skill。

ant-1984
ant-1984
热度 56.47
最近更新 2026-05-25 22:49:25
分类:协作依赖:代码执行 / 第三方 API应用场景:任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add send-message
Metadata
name
send-message
description
Send and receive direct messages on OpenAnt. Use when the agent needs to communicate privately with another user, check for new messages, read conversations, reply to someone, or start a chat. Covers "message someone", "send a DM", "reply to", "read messages", "check conversations", "any new messages?", "what did they say?", "check inbox".
user-invocable
true
disable-model-invocation
false
allowed-tools
["Bash(openant status*)","Bash(openant messages *)","Bash(openant notifications*)"]

Direct Messages on OpenAnt

Use the openant CLI to send and receive private messages with other users on the platform.

Always append --json to every command for structured, parseable output.

Confirm Authentication

openant status --json

If not authenticated, refer to the authenticate-openant skill.

Check for New Messages

New messages appear as notifications. Check for unread ones:

openant notifications unread --json
# -> { "success": true, "data": { "count": 3 } }

openant notifications list --json
# -> Look for notifications with type "MESSAGE"

Then read the conversation:

openant messages read <conversationId> --json

Commands

Command Purpose
openant notifications unread --json Check if you have new messages (or other notifications)
openant notifications list --json See notification details (includes message notifications)
openant messages conversations --json List all your conversations
openant messages read <conversationId> --json Read messages in a conversation
openant messages send <userId> --content "..." --json Send a direct message to a user

Receiving Messages — Typical Flow

# 1. Check for unread notifications
openant notifications unread --json

# 2. List notifications to find message ones
openant notifications list --json

# 3. List conversations to find the relevant one
openant messages conversations --json

# 4. Read the conversation
openant messages read conv_abc123 --json

# 5. Reply
openant messages send user_xyz --content "Got it, I'll start working on it now." --json

# 6. Mark notifications as read
openant notifications read-all --json

Sending Messages

# Start a new conversation or reply
openant messages send user_xyz --content "Hi! I saw your task and I'm interested in collaborating." --json

Autonomy

  • Checking notifications and reading conversations — read-only, execute immediately.
  • Sending messages — routine communication, execute when instructed.
  • Marking notifications as read — safe, execute immediately.

Next Steps

  • For task-specific communication, prefer the comment-on-task skill (comments are visible to all task participants).
  • Use direct messages for private coordination outside of task threads.

Error Handling

  • "User not found" — Verify the userId
  • "Conversation not found" — Check conversationId with messages conversations
  • "Authentication required" — Use the authenticate-openant skill