annotate_screenshot
Draw rectangles, ellipses, arrows, pen strokes, and highlights on a screenshot, then copy the marked image to the clipboard for immediate display.
Instructions
Draw on a screenshot you already took, then copy it to the clipboard and show it to the user. Call take_screenshot first and LOOK at the image: you cannot know where anything is until you have seen it. Points are fractions 0..1 of the image, origin TOP-LEFT, so a rectangle around a left sidebar that is a seventh of the width and starts under the title bar is [{x:0,y:0.05},{x:0.14,y:1}]. Rectangle and ellipse take two opposite corners, arrow takes start then tip, pen and highlight take a run of points. Returns the marked image so you can check what you drew.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path returned by take_screenshot | |
| marks | Yes | ||
| output | No | Where to write it; defaults to the source name plus ' marked' | |
| clipboard | No | Copy the result to the clipboard (default true) |