Evidence image
Use what the environment gives you. These are examples, not requirements. If none of them works, leave the image out.
Capture
- Android (device or emulator):
adb -s <serial> exec-out screencap -p > shot.png. Useexec-out, becauseadb shellbreaks the PNG. Pass the same-s <serial>(fromadb devices) to everyadbcommand below, so they all use that device when more than one is connected. - iOS simulator:
xcrun simctl io <udid> screenshot shot.png, with the UDID fromxcrun simctl list devices booted.bootedworks in its place when only one simulator runs. - Web: the browser tool's screenshot, for example
agent-browser screenshot shot.png. - Desktop app:
agent-desktop screenshot --app <app> shot.png. Pass--window-idfromagent-desktop list-windows --app <app>when the app has more than one window. - Short video:
adb -s <serial> shell screenrecord --time-limit 5 /sdcard/bug.mp4, thenadb -s <serial> pull /sdcard/bug.mp4. Make a GIF withffmpeg -i bug.mp4 -vf "fps=8,scale=800:-1" bug.gif.
Mark the problem
Find the element's box. Do not guess it from the image.
- Android:
adb -s <serial> exec-out uiautomator dump /dev/ttyprintsbounds="[x1,y1][x2,y2]"for each view. A web view inside the app often shows only its outer box. - Web:
document.querySelector("<selector>").getBoundingClientRect(). Multiply bydevicePixelRatioif the screenshot is larger than the viewport.
Draw an ellipse a little larger than the box (ImageMagick 7, center and radii):
magick shot.png -fill none -stroke red -strokewidth 6 \
-draw "ellipse <cx>,<cy> <rx>,<ry> 0,360" marked.pngPython with Pillow works too: ImageDraw.Draw(img).ellipse(box, outline="red", width=6).
Size
- Crop to the problem with some context around it:
magick marked.png -crop <w>x<h>+<x>+<y> +repage out.png. - Keep it under about 1 MB. A full tablet screen is about 5 MB.
-resize '1200x1200>'helps. - Open the result and look at it. The mark must sit on the problem, and the screen must not be blank or still loading.
Place it
Directly after the leads, before the divider, with alt text that says what it shows, for example . The platform skill says how to upload the file and get the URL. Slack is different: it has no image syntax in the text, so clins:slack ("Media") shares the file with the leads, and any more files in the thread, and the alt text goes in the upload. If the platform skill has no upload step, leave the image out.