execute_in_react_context
Execute JavaScript within React applications to inspect components, access state data, or trigger specific actions for testing and analysis purposes.
Instructions
Execute JavaScript in React context to inspect components, state, or trigger actions
Input Schema
Name | Required | Description | Default |
---|---|---|---|
browser | No | Browser engine to use | chromium |
script | Yes | JavaScript code to execute in the browser context | |
url | Yes | URL of the React app | |
waitForReact | No | Wait for React to be available before executing |
Input Schema (JSON Schema)
{
"properties": {
"browser": {
"default": "chromium",
"description": "Browser engine to use",
"enum": [
"chromium",
"firefox",
"webkit"
],
"type": "string"
},
"script": {
"description": "JavaScript code to execute in the browser context",
"type": "string"
},
"url": {
"description": "URL of the React app",
"type": "string"
},
"waitForReact": {
"default": true,
"description": "Wait for React to be available before executing",
"type": "boolean"
}
},
"required": [
"url",
"script"
],
"type": "object"
}