annotate_screenshot
Add rectangles, ellipses, arrows, pen, and highlight marks to an existing screenshot, then copy the annotated image to the clipboard for immediate sharing.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"marks": "<marks>"
},
"name": "annotate_screenshot"
}
}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) |