Numbered map of interactive elements
annotate_interactiveCapture an annotated screenshot that outlines and numbers every interactive element, with a table mapping each number to its best selector and stability score. Pick a number to target elements reliably before acting.
Instructions
Returns a screenshot with every interactive element outlined and numbered, plus a table mapping each number to its best selector and a stability score. This is the tool to use before acting on a page: look at the image, pick a number, then use that number's selector. Far more reliable than guessing a selector from the DOM.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "annotate_interactive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | "controls" covers buttons, inputs and selects; "all" adds links and landmarks. | controls |
| viewport | No | Render the page at a breakpoint before capturing. "current" uses the window as it is. | current |