> 状态:暂不可用 — Gmail 账号尚未链接,该工具暂时不可使用。如需启用,请通过 mx_link 工具链接 Gmail 账号(app: gmail)。
通过 mx_gmail 工具管理 Gmail 邮箱:读取、搜索、发送邮件,管理标签。
openclaw plugins install openclaw-morphixaimk_xxxxxx 密钥export MORPHIXAI_API_KEY="mk_your_key_here"mx_link 工具链接(app: gmail)mx_gmail:
action: get_profile
mx_gmail:
action: list_messages
max_results: 10
> list_messages 只返回邮件 ID 列表,需用 get_message 获取完整内容。
mx_gmail:
action: get_message
message_id: "18dxxxxxxxx"
mx_gmail:
action: search_messages
query: "from:boss@company.com subject:周报"
max_results: 5
> Gmail 搜索语法支持:
> - from: / to: — 发件人/收件人
> - subject: — 主题
> - is:unread / is:starred — 未读/星标
> - newer_than:7d / older_than:30d — 时间范围
> - has:attachment — 有附件
> - label: — 标签
mx_gmail:
action: send_mail
to: "colleague@company.com"
subject: "项目更新"
body: "Hi,项目进展如下:\n1. 完成了 API 开发\n2. 正在编写测试"
cc: "manager@company.com"
mx_gmail:
action: list_labels
mx_gmail:
action: mark_as_read
message_id: "18dxxxxxxxx"
mx_gmail:
action: trash_message
message_id: "18dxxxxxxxx"
1. mx_gmail: list_messages, q: "is:unread", max_results: 5
2. mx_gmail: get_message, message_id: "xxx" → 逐条查看
3. mx_gmail: mark_as_read, message_id: "xxx" → 标记已读
1. mx_gmail: search_messages, query: "from:client@example.com"
2. mx_gmail: get_message → 查看内容
3. mx_gmail: send_mail, to: "client@example.com", subject: "Re: xxx"
list_messages 返回的是邮件 ID 列表,需用 get_message 获取完整内容account_id 参数通常省略,工具自动检测已链接的 Gmail 账号共 1 个版本