AgentSkillsCN

tool-take-screenshot

在调用 MCP take_screenshot,或无需应用代码即可截取设备/模拟器屏幕时,可使用此功能。

SKILL.md
--- frontmatter
name: tool-take-screenshot
description: Use when calling MCP take_screenshot or capturing device/simulator screen without app code.

take_screenshot

How it works

  • Runs host CLI only: Androidadb exec-out screencap -p, iOSxcrun simctl io booted screenshot <path> then read file. No native module or eval in the app.
  • Returns PNG as MCP image content (or base64/text for compatibility). platform is required (android | ios); iOS is simulator only.
  • Optional: filePath, format, quality. Use when you need to verify UI or share a screenshot.