DeepSyte

browser_evaluate

Run JavaScript in the browser page and return the result as text.

Parameters

ParameterTypeRequiredDescription
sessionIdstringYesSession ID from browser_navigate
scriptstringYesJavaScript expression to evaluate
captionstringNoShort reason for the evaluation, echoed in the MCP/CLI evidence text

Examples

Run document.title to get the page title
Run document.querySelectorAll('a').length to count all links
Run JSON.stringify(performance.timing) to get performance timing data

Notes

  • Executes in the browser context with full DOM access
  • Returns the current URL, session ID, truncated script, and result so chat/CLI transcripts show what was inspected
  • Useful for extracting data, checking state, or triggering actions not covered by other tools
  • Has access to window, document, localStorage, etc.

On this page