grok_image_generate

# images_generate_grok

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "grok_image_generate" with this command: npx skills add 279458179/grok-image-generate

images_generate_grok

使用 Grok Imagine 生成图片的技能。

触发条件

用户要求:

  • "用 Grok 生成图片"
  • "生成一张图片"
  • "帮我画个图"
  • "生成 xxx 图片"

使用流程

1. 打开 Grok Imagine 页面

// 使用 browser 工具打开 Grok Imagine 页面
playwright({
  action: "open",
  profile: "openclaw",
  url: "https://grok.com/imagine"
})

2. 输入提示词并生成

等待页面加载后,在输入框中输入提示词,然后点击提交按钮生成图片。

// 输入提示词
playwright({
  action: "act",
  request: { "kind": "type", "ref": "输入框ref", "text": "用户想要生成的内容" }
})

// 点击提交按钮
playwright({
  action: "act", 
  request: { "kind": "click", "ref": "提交按钮ref" }
})

等待图片生成完成(约 8-10 秒)。

3. 获取图片并下载

图片生成后,需要保存到本地。有两种方式:

方式一:使用 Desktop Control 技能保存(推荐)

使用 desktop-control 技能通过鼠标操作保存图片:

步骤1:移动鼠标到图片上并右键点击

# 获取屏幕尺寸
uvx desktop-agent screen size

# 移动鼠标到图片位置(根据屏幕尺寸调整坐标)
uvx desktop-agent mouse move <x> <y>

# 右键点击
uvx desktop-agent mouse right-click

步骤2:选择"图片另存为"

# 使用键盘选择菜单选项(通常按向下键然后回车)
uvx desktop-agent keyboard press down --presses 2
uvx desktop-agent keyboard press return

步骤3:点击存储

# 在保存对话框中点击存储
uvx desktop-agent keyboard press return

完整示例:

# 假设图片在屏幕中心区域
uvx desktop-agent mouse move 720 400
uvx desktop-agent mouse right-click
sleep 1
uvx desktop-agent keyboard press down --presses 2
uvx desktop-agent keyboard press return
sleep 1
uvx desktop-agent keyboard press return

步骤4:找到保存的图片

# 查看下载文件夹中最新的文件
ls -lat ~/Downloads/ | head -10

4. 发送图片到飞书

图片保存到本地后,可以使用 message 工具发送到飞书:

方式一:从下载目录发送

# 查看保存的图片
ls -lat ~/Downloads/*.jpg | head -5

# 发送图片到飞书
message({
  action: "send",
  filePath: "/Users/xiaohuozi/Downloads/图片文件名.jpg",
  message: "图片描述"
})

方式二:从图片目录发送(如果是截图)

// 先复制到图片目录
cp ~/Downloads/图片文件名.jpg ~/.openclaw/workspace/images/描述.jpg

// 然后发送
message({
  action: "send",
  filePath: "/Users/xiaohuozi/.openclaw/workspace/images/描述.jpg",
  message: "图片描述"
})

飞书发送图片正确姿势

  1. 将图片保存到 ~/.openclaw/workspace/images/ 目录
  2. 使用 message 工具直接发送图片
  3. 工具会自动处理图片上传和发送

保存路径建议

  • 推荐保存到 ~/.openclaw/workspace/images/ 目录
  • 文件名建议:描述关键词.jpg 或带时间戳:peacock_king.jpg
  • 如果需要发送到飞书,直接使用该路径即可

注意事项

  • Grok Imagine 免费用户可能有生成次数限制
  • 生成的图片是 AI 生成的,可能需要等待加载
  • 如果页面元素有变化,需要根据实际情况调整 DOM 选择器

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wechat Mp Writer

WeChat Official Account (公众号) content writer with article formatting, headline optimization, and engagement tips. Use when you need to write WeChat articles,...

Registry SourceRecently Updated
General

OpenClaw EverMemory Installer

Use this skill when installing, upgrading, verifying, or publishing the EverMemory OpenClaw plugin and its companion skill, including local path install, npm...

Registry SourceRecently Updated
General

Ip Advisor

知识产权顾问。专利、版权、商业秘密、注册流程、保护策略。IP advisor for patents, copyrights, trade secrets. 知识产权、专利、版权。

Registry SourceRecently Updated
1950ckchzh
General

炒股大师模拟器

炒股大师模拟器 | 股市模拟交易练习 | A股/港股/美股投资学习 | 化身文主任/股神老徐/炒股养家/孙宇晨等各位大师学习投资思路 | 多智能体股票讨论群

Registry SourceRecently Updated