Run JavaScript in a running profile's page; 64 KiB result cap, 10 s timeout.

Runs the JavaScript expression inside the running profile's page, with the page's own access to its cookies, storage and logged-in session. It can change or submit anything the page can. The result is cut at 64 KiB; the call gives up after 10 s.

post/v1/profiles/{id}/evaluate

Request

  • Base URL: http://127.0.0.1:10108
  • URL: http://127.0.0.1:10108/v1/profiles/{id}/evaluate
  • Auth: HTTP bearer

Path parameters

idstring required

Profile id (uuid), as listed by GET /v1/profiles.

Request body

dialog'dismiss' | 'accept'
expressionstring required
prompt_textstring

Response

The expression's value as text, cut at 64 KiB, with any JS dialog it opened.

textstring required
truncatedboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.