Take a screenshot of the current browser page
Capture a screenshot from the proxied browser page and return the image file path. Use this when you need to see what's currently displayed in the browser window.
/plugin marketplace add standardbeagle/agnt/plugin install agnt@standardbeagle-toolsCapture a screenshot from the proxied browser page.
Execute the screenshot function in the browser:
proxy {action: "exec", id: "dev", code: "__devtool.screenshot('screenshot')"}
Wait briefly for the screenshot to be captured and sent.
Query the logs for the screenshot entry:
proxylog {proxy_id: "dev", types: ["screenshot"], limit: 1}
The screenshot log entry contains:
image_path: Path to the PNG filetimestamp: When the screenshot was takenReport the screenshot path to the user. The image can be viewed with any image viewer.
Note: If there's no browser connected to the proxy, this will fail. Make sure the user has the proxy URL open in their browser.