SessionKit DOCS
Get Started
API Reference Evaluate
POST/v1/sessions/{session_id}/pages/evaluate

Evaluate

Execute JavaScript in the page context and return the result.

The active session ID. JavaScript expression to evaluate. Whether to await the result if it's a Promise.

Response

{
  "result": "Hello World",
  "type": "string"
}
⌘I
AI Assistant

Ask me anything about the documentation.

ESC