headlessstage

v0.1.0
io.github.CloudCorpRecords/headlessstage Checked 3 days ago Published 1 month ago

Browser automation: navigate, click, fill, screenshot and evaluate in a headless browser.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

puppeteer_navigate

Navigate to any URL in the browser

ParameterTypeDescription
url *stringThe URL to navigate the browser to
allowDangerousbooleanWhether to allow dangerous launch options such as disabling the browser sandbox
launchOptionsobjectOptional Puppeteer launch options object for the browser instance

puppeteer_screenshot

Capture screenshots of the entire page or specific elements

ParameterTypeDescription
name *stringThe name to store the screenshot under
encodedbooleanWhether to return the screenshot as a base64 encoded data URL
heightnumberOptional viewport height in pixels for the screenshot
selectorstringOptional CSS selector of the element to screenshot; the full page is captured when omitted
widthnumberOptional viewport width in pixels for the screenshot

puppeteer_click

Click elements on the page

ParameterTypeDescription
selector *stringThe CSS selector of the element to click

puppeteer_hover

Hover elements on the page

ParameterTypeDescription
selector *stringThe CSS selector of the element to hover over

puppeteer_fill

Fill out input fields

ParameterTypeDescription
selector *stringThe CSS selector of the input field to fill
value *stringThe value to enter into the field

puppeteer_select

Select an element with a SELECT tag

ParameterTypeDescription
selector *stringThe CSS selector of the SELECT element
value *stringThe option value to select

puppeteer_evaluate

Execute JavaScript in the browser console

ParameterTypeDescription
script *stringThe JavaScript code to execute in the browser console