Interaction

Evaluate JavaScript in tab

Runs arbitrary JS in the page context and returns the result.

post/tabs/{tabId}/evaluate

Path parameters

tabIdstring required

Request body

userIdstring required
expressionstring required

JavaScript expression to evaluate.

Response

Evaluation result.

okboolean
{"stackTrail":"paths:/tabs/{tabId}/evaluate:post:responses:200:content:application/json:schema:properties:result","oasType":"schema","type":"unknown"}

Changes

Changed in 1 of the 49 revisions of this API.2

    • added the non-success response with the status 409

      response-non-success-status-added

    • added the non-success response with the status 503

      response-non-success-status-added